-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.self.yml
59 lines (54 loc) · 982 Bytes
/
docker-compose.self.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
version: '3.1'
services:
nginx:
ports:
- "80:80"
build:
context: ./etc/nginx/
dockerfile: Dockerfile
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
volumes:
- static_store:/opt/app/public
depends_on:
- web
web:
ports:
- "8000:8000"
build:
context: .
dockerfile: Dockerfile
args:
- DOCKER_REGISTRY
- PIP_INDEX_URL
- PIP_TRUSTED_HOST
env_file:
- .env
environment:
- DB_HOST=db
- REDIS_HOST=redis
depends_on:
- db
- redis
command: ["web"]
volumes:
- static_store:/opt/app/public
db:
image: ${DOCKER_REGISTRY}/postgres
ports:
- "5432:5432"
env_file:
- .env
volumes:
- pg_store:/var/lib/postgresql/data
redis:
image: ${DOCKER_REGISTRY}/redis
ports:
- "6379:6379"
env_file:
- .env
volumes:
static_store:
pg_store: