-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
73 lines (69 loc) · 1.38 KB
/
docker-compose-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.5'
services:
api:
container_name: locapy_api
image: locapy_api:prod
build:
context: .
dockerfile: Dockerfile
args:
requirements: prod
command: gunicorn --env DJANGO_SETTINGS_MODULE=locapy.settings.prod locapy.wsgi:application
volumes:
- .:/app
ports:
- 8000:8000
links:
- postgres:postgres
networks:
- locapy_api
depends_on:
- migration
- postgres
collectstatic:
container_name: collectstatic
image: locapy_api:prod
build:
context: .
dockerfile: Dockerfile
args:
requirements: prod
command: python manage.py collectstatic --noinput
volumes:
- .:/app
networks:
- locapy_api
depends_on:
- postgres
migration:
container_name: migration
image: locapy_api:prod
build:
context: .
dockerfile: Dockerfile
args:
requirements: prod
command: python manage.py migrate
volumes:
- .:/app
networks:
- locapy_api
depends_on:
- postgres
postgres:
container_name: postgres
image: postgres:10.7
environment:
- POSTGRES_USER=panda_user
- POSTGRES_DB=Teste
- POSTGRES_PASSWORD=Teste123
volumes:
- .:/app
ports:
- 5432:5432
networks:
- locapy_api
networks:
locapy_api:
external:
name: locapy_api