forked from qgriffith-zz/OpenEats
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-prod.yml
46 lines (46 loc) · 945 Bytes
/
docker-prod.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
version: '2.1'
services:
api:
image: openeats/api
command: /startup/prod-entrypoint.sh
restart: on-failure
volumes:
- static-files:/code/static-files
- site-media:/code/site-media
depends_on:
db:
condition: service_healthy
env_file:
env_prod.list
node:
image: openeats/node
command: npm start
depends_on:
- api
env_file:
env_prod.list
db:
image: mariadb
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 20
env_file:
env_prod.list
nginx:
image: openeats/nginx
command: ./start.sh
ports:
- "80:80"
volumes:
- static-files:/var/www/html/openeats-static/static-files
- site-media:/var/www/html/openeats-static/site-media
depends_on:
- api
- node
env_file:
env_prod.list
volumes:
database:
static-files:
site-media: