-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
49 lines (45 loc) · 945 Bytes
/
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
version: "3"
networks:
network1:
name: falcon # if you created another network using different name then replace this with the network name.
external: true
services:
db:
image: mysql
restart: always
networks:
- network1
# ports:
# - 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 6783
volumes:
- ./data/mysqlDB:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h db --password=$$MYSQL_ROOT_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
falcon:
networks:
- network1
ports:
- 5000:4000
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
restart: always
environment:
- NODE_ENV=production
command: npm run prod
volumes:
- ./data/backend:/falcon/data/app:rw
volumes:
db:
driver: local
falcon:
driver: local