-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-local.yml
61 lines (58 loc) · 1.13 KB
/
docker-compose-local.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
version: '2'
services:
site_do_caco:
container_name: site-do-caco
restart: always
build:
context: .
dockerfile: Dockerfile
links:
- postgres:postgres
volumes:
- "./:/code"
- "staticfiles:/static"
depends_on:
- postgres
environment:
- PYTHONDONTWRITEBYTECODE=1
expose:
- "8001"
nginx:
container_name: nginx-site
restart: always
build:
context: ./.nginx-docker
dockerfile: Dockerfile-local
volumes:
- "staticfiles:/static"
- "./sitecaco/media:/media"
ports:
- "80:80"
depends_on:
- "site_do_caco"
links:
- site_do_caco:site_do_caco
- postgres:postgres
postgres:
container_name: postgres-site
restart: always
image: postgres:latest
environment:
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- DB_SERVICE=postgres
- DB_PORT=5432
expose:
- "5432"
volumes:
- db:/var/lib/postgresql/data/
volumes:
assets:
external: false
staticfiles:
external: false
mediafiles:
external: false
db:
external: false