-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
db:
image: mysql:8.0.19
volumes:
- ./data/scripts:/docker-entrypoint-initdb.d
- ./data/files:/var/lib/mysql-files
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: spot
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
networks:
- spot-network
restart: always
command:
- '--character-set-server=utf8mb4'
- '--secure-file-priv=/var/lib/mysql-files'
- '--default-authentication-plugin=mysql_native_password'
api:
image: pcourbin/spot_api:0.1.0
build: ./api/SPOTAPI
environment:
DATABASE_URL: "mysql://user:password@db:3306/spot"
PORT: "4000"
ports:
- 4000:4000
networks:
- spot-network
depends_on:
- db
restart: always
front:
image: pcourbin/spot_front:0.1.0
build: ./front/SPOTFront
volumes:
# - ./front/SPOTFront:/app #For development
# - ./front/SPOTFront/src/app/theme-table:/app/src/app/theme-table #For development on one part
- ./environment.ts:/app/src/environments/environment.ts #For deployments
ports:
- 3000:4200
networks:
- spot-network
depends_on:
- db
- api
restart: always
dbadmin:
image: phpmyadmin/phpmyadmin:edge-4.9
environment:
#PMA_ARBITRARY: 1
PMA_HOST: db
MPA_PORT: 3306
PMA_USER: user
PMA_PASSWORD: password
ports:
- "5000:80"
networks:
- spot-network
networks:
spot-network:
external: true