-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (57 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·63 lines (57 loc) · 1.24 KB
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
version: '3.8'
services:
redis:
image: redis:7.2.1
expose:
- 6379
networks:
- pomotracker-network
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=devpostgres1234
- POSTGRES_DB=pomotracker
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- pomotracker-network
app:
build: .
command: gunicorn PomoTracker.wsgi:application --bind 0.0.0.0:80 --timeout 600 --workers 3
env_file:
- ./PomoTracker/.dev.env
develop:
watch:
- action: sync
path: ./app
target: /home/app/pomotracker/app
initial_sync: true
volumes:
- static_volume:/home/app/pomotracker/staticfiles
expose:
- 80
networks:
- pomotracker-network
depends_on:
- redis
- postgres
nginx:
image: nginx:stable-alpine-slim
ports:
- "1337:80"
volumes:
- static_volume:/home/app/pomotracker/staticfiles
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
networks:
- pomotracker-network
networks:
pomotracker-network:
driver: bridge
volumes:
static_volume:
postgres_data: