-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (69 loc) · 1.83 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
# --- HOW TO docker compose ------
# 1) $ docker compose up
# 2) Ctrl+c when ready to quit, shutdown can take about 15 seconds.
# 3) $ docker compose down
version: "3.8"
services:
mysql:
image: mysql:latest
volumes:
- cindi-mysql-data:/var/lib/mysql
- "./init-nonsense-mysql.sql:/docker-entrypoint-initdb.d/1.sql"
environment:
MYSQL_ROOT_PASSWORD: secret
redis:
image: redis:latest
volumes:
- cindi-redis-data:/data
postgres:
image: postgres:alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
# logging:
# options:
# max-size: 10m
# max-file: "3"
ports:
- '5432:5432'
volumes:
- cindi-postgresql-data:/var/lib/postgresql/data
- "./init-nonsense-postgresql.sql:/docker-entrypoint-initdb.d/1.sql"
mongodb:
image: mongo:latest
restart: always
command: mongod --auth --port 27111
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
ports:
- 27111:27111
volumes:
- cindi-mongodb-data:/data/db
- "./init-nonsense-mongodb.js:/docker-entrypoint-initdb.d/1.js"
# when cindi.py starts, it doesn't open DBMS connections until it receives
# HTTP client requests, so there is no need to "sleep for 11 seconds" while
# the back-end services initialize.
cindi:
image: ultasun/cindi
depends_on:
- "mysql"
- "redis"
- "postgres"
- "mongodb"
ports:
- 36963:36963
working_dir: /app
volumes:
- cindi-sqlite3-data:/app/data
- cindi-logs:/app/logs
- ./config:/app/config
- ./init-nonsense-sqlite3.sql:/app/init-nonsense-sqlite3.sql
volumes:
cindi-sqlite3-data:
cindi-mysql-data:
cindi-redis-data:
cindi-postgresql-data:
cindi-mongodb-data:
cindi-logs: