-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
67 lines (59 loc) · 1.57 KB
/
docker-compose.prod.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
version: '3.9'
services:
mysql:
image: mysql:8.3
ports:
- "${MYSQL_PORT:-3306}:3306"
container_name: shop-database-prod
volumes:
- dbdata_prod:/var/lib/mysql
restart: always
command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
env_file:
- .env.production
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_DB}
MYSQL_DATABASE: ${MYSQL_DB}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
mongodb:
image: mongo:8.0.0-rc6-jammy
ports:
- "${MONGO_PORT:-27017}:27017"
env_file:
- .env.production
volumes:
- mongodb_data_prod:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
redis:
image: redis:7.2.4
container_name: redis
restart: always
env_file:
- .env.production
ports:
- "${REDIS_PORT:-6379}:6379"
command: redis-server --loglevel warning --protected-mode no --save "" --appendonly no
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis_data_prod:/data
minio:
image: minio/minio:RELEASE.2024-05-01T01-11-10Z
container_name: vivify_minio
ports:
- "9000:9000" #api minio port
- "9001:9001" #console minio port
environment:
MINIO_ROOT_USER: vivify
MINIO_ROOT_PASSWORD: vivify
command: server /data --console-address ":9001"
volumes:
- minio_data_prod:/data
volumes:
dbdata_prod:
mongodb_data_prod:
redis_data_prod:
minio_data_prod: