-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 957 Bytes
/
docker-compose.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
services:
duotasker:
image: beetwenty/duotasker:latest
restart: always
volumes:
- /path/to/static/:/app/staticfiles/
depends_on:
- redis
- postgres
networks:
- app-network
nginx:
image: nginx:alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /path/to/nginx.conf:/etc/nginx/nginx.conf
- /path/to/static:/app/staticfiles/
environment:
- SERVER_NAME=${SERVER_NAME}
depends_on:
- duotasker
networks:
- app-network
redis:
image: "redis:alpine"
networks:
- app-network
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- /path/to/postgresql:/var/lib/postgresql/data/
networks:
- app-network
volumes:
static_volume:
networks:
app-network:
driver: bridge