-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.18 KB
/
docker-compose.yml
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
version: '3.5'
services:
front:
container_name: timetracker-front
build: ./time-tracker-front
volumes:
- './time-tracker-front:/usr/src/app'
ports:
- '4200:4200'
command: >
sh -c "npm install && ng serve --host 0.0.0.0 --port 4200"
networks:
timetracker:
ipv4_address: 172.10.1.1
api:
container_name: timetracker-api
build: ./time-tracker-api
volumes:
- './time-tracker-api:/usr/src/app'
ports:
- '3000:3000'
command: >
sh -c "npm install && npm run start:dev"
networks:
timetracker:
ipv4_address: 172.10.1.2
mysql:
container_name: timetracker-mysql
build:
context: .docker
dockerfile: images/mysql/Dockerfile
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3306:3306
volumes:
- ./.docker/data/mysql:/var/lib/mysql
- ./.docker/conf/mysql:/docker-entrypoint-initdb.d/:ro
env_file:
- ./.docker/conf/mysql/development.env
networks:
timetracker:
ipv4_address: 172.10.1.3
networks:
timetracker:
driver: bridge
ipam:
config:
- subnet: 172.10.0.0/16