forked from wo0gA/woogaback
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 972 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 972 Bytes
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
services:
nginx:
build: ./nginx
image: wooga_nginx:latest
volumes:
- static_volume:/usr/src/app/_static
- /etc/letsencrypt/live/server.templ.es/fullchain.pem:/etc/nginx/ssl/fullchain.pem:ro
- /etc/letsencrypt/live/server.templ.es/privkey.pem:/etc/nginx/ssl/privkey.pem:ro
ports:
- 80:80
- 443:443
depends_on:
- web
env_file:
- ./.env.prod
web:
build: .
image: wooga_web:latest
command: daphne likelion_hackathon.asgi:application --port 8000 --bind 0.0.0.0 -v2
volumes:
- static_volume:/usr/src/app/_static
- ./:/usr/src/app/
expose:
- 8000
env_file:
- ./.env.prod
depends_on:
- db
- redis
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.prod
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
postgres_data:
static_volume: