-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
111 lines (103 loc) · 3.04 KB
/
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
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
version: '2'
services:
redis-cache:
image: redis:alpine
container_name: opac_redis_prod
user: redis
restart: always
volumes:
- ./data/redis-cache-data-dev:/data
- /etc/localtime:/etc/localtime:ro
opac_mongo:
image: mongo:4.2
container_name: opac_mongo_prod
restart: always
user: mongodb
hostname: opac-mongo
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db:rw
opac_webapp:
image: infrascielo/opac_5
container_name: opac_webapp_prod
user: nobody
restart: always
hostname: opac_webapp
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
- ./data/img:/app/data/img
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
expose:
- "8000"
env_file:
- ./.envs/.production-template/.flask
- ./.envs/.production-template/.redis
- ./.envs/.production-template/.monitoring-apm
- ./.envs/.production-template/.metrics
nginx:
image: nginx:latest
container_name: opac_nginx
depends_on:
- opac_webapp
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx/
ports:
- "80:80"
opac-rq-worker-1:
image: infrascielo/opac_5
container_name: opac_rq_worker_prod
command: /app/start_worker.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
env_file:
- ./.envs/.production-template/.flask
- ./.envs/.production-template/.redis
- ./.envs/.production-template/.server
opac-rq-scheduler:
image: infrascielo/opac_5
container_name: opac_rq_scheduler_prod
command: /app/start_scheduler.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
env_file:
- ./.envs/.production-template/.flask
- ./.envs/.production-template/.redis
- ./.envs/.production-template/.server
minio:
image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z'
container_name: opac_minio
hostname: opac-minio
ports:
- '9000:9000'
- '9001:9001'
env_file:
- ./.envs/.production-template/.minio
volumes:
- '../minio/data:/data'
command: server --console-address ":9001" /data