-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-staging.yml
executable file
·83 lines (75 loc) · 1.46 KB
/
docker-compose-staging.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
db:
restart: always
image: postgres:14.0
environment:
- POSTGRES_USER=fresh_appUser
- POSTGRES_PASSWORD=fresh_appPassword
volumes:
- "fresh_app_db_data:/var/lib/postgresql/data"
expose:
- 5432
ports:
- 5433:5432
networks:
- fresh_app_backend_tier
redis:
restart: always
image: redis:latest
networks:
- fresh_app_backend_tier
fresh_app:
restart: always
build: .
depends_on:
- redis
- db
env_file: .env
command: gunicorn fresh_app.wsgi:application --bind 0.0.0.0:8009 --workers 3 --log-level=DEBUG
links:
- db:postgres
- redis
ports:
- "8009:8009"
expose:
- "8009"
volumes:
- .:/app
networks:
- fresh_app_backend_tier
celery:
build: .
command: celery -A fresh_app worker -l info
env_file: .env
restart: unless-stopped
depends_on:
- db
- redis
networks:
- fresh_app_backend_tier
nginx:
build: ./nginx
depends_on:
- fresh_app
ports:
- "80:80"
- "443:443"
expose:
- "80"
- "443"
volumes:
- ./nginx:/etc/nginx/conf.d/
- ./static:/app/static/
- ./media:/app/media/
- ./logs/Nginx:/var/log/nginx/
networks:
- fresh_app_backend_tier
volumes:
fresh_app_db_data:
driver: local
static_volume:
driver: local
networks:
fresh_app_backend_tier:
driver: bridge