-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
121 lines (110 loc) · 2.58 KB
/
docker-compose.prod.yml
File metadata and controls
121 lines (110 loc) · 2.58 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: "3.8"
services:
api:
container_name: solesearch_api
image: peterrauscher/solesearch-api:latest
volumes:
- ~/solesearch/api/data:/var/data/solesearch
networks:
- solesearch_network
depends_on:
- db
- redis
restart: always
env_file:
- ".env"
celery_worker:
container_name: solesearch_worker
image: peterrauscher/solesearch-api:latest
command: celery -A solesearch_api.tasks worker --loglevel=info
volumes:
- ~/solesearch/api/data:/var/data/solesearch
networks:
- solesearch_network
depends_on:
- api
- redis
- rabbitmq
restart: always
env_file:
- ".env"
celery_beat:
container_name: solesearch_beat
image: peterrauscher/solesearch-api:latest
command: celery -A solesearch_api.tasks beat --loglevel=info
volumes:
- ~/solesearch/api/data:/var/data/solesearch
networks:
- solesearch_network
depends_on:
- api
- redis
- rabbitmq
restart: always
env_file:
- ".env"
db:
container_name: solesearch_db
image: postgres:16-alpine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- solesearch_network
restart: always
env_file:
- ".env"
redis:
container_name: solesearch_redis
image: redis:alpine
volumes:
- redis_data:/data
networks:
- solesearch_network
restart: always
rabbitmq:
container_name: solesearch_rabbitmq
image: rabbitmq:management-alpine
ports:
- "15672:15672"
networks:
- solesearch_network
restart: always
env_file:
- ".env"
nginx:
image: nginx:alpine
container_name: solesearch_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/templates:/etc/nginx/templates
- ./nginx/certbot/etc/letsencrypt:/etc/letsencrypt
- ./nginx/certbot/var/www/certbot:/var/www/certbot
networks:
- solesearch_network
depends_on:
- api
restart: always
env_file:
- ".env"
certbot:
image: certbot/certbot:latest
container_name: solesearch_certbot
command: certonly --reinstall --webroot --webroot-path=/var/www/certbot --email ${EMAIL} --agree-tos --no-eff-email -d ${DOMAIN}
volumes:
- ./nginx/certbot/etc/letsencrypt:/etc/letsencrypt
- ./nginx/certbot/var/www/certbot:/var/www/certbot
depends_on:
- nginx
restart: unless-stopped
env_file:
- ".env"
volumes:
postgres_data:
redis_data:
networks:
solesearch_network:
driver: bridge