-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
60 lines (50 loc) · 939 Bytes
/
production.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
50
51
52
53
54
55
56
57
58
59
60
# Docker Compose YML Config
# frontend:
# image: jtarball/docker-polymer:latest
# env_file:
# - env
# expose:
# - "3000"
# Porting Mapping Only work on `docker compose up` not via `docker run`
# devmount:
# restart: always
# build: docker/devmount
# volumes:
# - mount:/src
# volumes_from:
# - app
app:
restart: always
build: docker/app
#command: python /mount/app/backend/manage.py runserver 0.0.0.0:8000
env_file:
- env
volumes:
- ./docker/app/app:/app
ports:
- "8000:8000"
links:
- postgres:postgres
# nginx:
# restart: always
# build: ./docker/nginx/
# ports:
# - "80:80"
# volumes:
# - /www/static
# volumes_from:
# - app
# links:
# - app:app
postgres:
restart: always
image: postgres:latest
volumes_from:
- data
ports:
- "5432:5432"
data:
restart: always
image: postgres:latest
volumes:
- /var/lib/postgresql