-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (37 loc) · 1016 Bytes
/
docker-compose.yaml
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
version: "3"
services:
pfa-docker-c2-mysql:
image: mysql:8.0.24
environment:
- MYSQL_DATABASE=fullcycle
- MYSQL_ROOT_PASSWORD=root
- LANG=C.UTF-8
volumes:
- ./mysql/dbdata:/var/lib/mysql
- ./mysql/sql-scripts/:/docker-entrypoint-initdb.d/
networks:
- app-db
pfa-docker-c2-node:
build: ./node
volumes:
- ./node:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- pfa-docker-c2-mysql
entrypoint: dockerize -wait tcp://pfa-docker-c2-mysql:3306 -timeout 300s -wait-retry-interval 5s
command: nodemon index.js
networks:
- app-db
- app-webserver
pfa-docker-c2-nginx:
build: ./nginx
restart: always
ports:
- 8000:80
depends_on:
- pfa-docker-c2-node
networks:
- app-webserver
networks:
app-db:
app-webserver: