-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
46 lines (46 loc) · 975 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
42
43
44
45
46
services:
app:
build: app
command: ["sh", "/app/entrypoint.sh"]
volumes:
- ./app:/app
# develop:
# watch:
# - action: sync
# path: ./app
# target: /app
# ignore:
# - /app/node_modules/
# - action: rebuild
# path: /app/package.json
networks:
- network
working_dir: /app
ports:
- "3000:3000"
environment:
DATABASE_URI: mysql://root@database:3306/relay
env_file:
- ./app/.env
depends_on:
database:
condition: service_healthy
database:
image: mysql:5.7
networks:
- network
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: relay
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
retries: 5
start_period: 5s
networks:
network:
driver: bridge