forked from RyanNoelk/OpenEats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stage.yml
44 lines (44 loc) · 840 Bytes
/
docker-stage.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
version: '2'
services:
api:
build: api/
command: ./base/gunicorn_start.sh
restart: on-failure
volumes:
- static-files:/code/static-files
- site-media:/code/site-media
depends_on:
- db
env_file:
env_stg.list
node:
build: frontend/
command: npm start
volumes:
- node_modules:/code/node_modules
depends_on:
- api
env_file:
env_stg.list
db:
image: mariadb
env_file:
env_stg.list
nginx:
build: services/
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_stg.list
volumes:
database:
node_modules:
static-files:
site-media: