-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-pro.yml
60 lines (55 loc) · 1.33 KB
/
docker-compose-pro.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
services:
redis:
image: redis:7.4
container_name: ${PROJECT_NAME}-redis
restart: unless-stopped
ports:
- 6379
mongo:
image: mongo:7.0-jammy
container_name: ${PROJECT_NAME}-mongo
restart: unless-stopped
env_file:
- .env.mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB_NAME}
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- tipi-mongo:/data/db
tipi-engine:
image: politicalwatch/tipi-engine:${BRANCH}
container_name: ${PROJECT_NAME}-engine
restart: unless-stopped
env_file:
- .env.mongo
- .env.engine
ports:
- 8091:8091
depends_on:
- mongo
tipi-backend:
image: politicalwatch/tipi-backend:${BRANCH}
container_name: ${PROJECT_NAME}-backend
restart: unless-stopped
env_file:
- .env.mongo
- .env.backend
# command: if you want to add different command
ports:
- ${BACKEND_PORT}:5000
depends_on:
- mongo
tipi-tasks:
image: politicalwatch/tipi-tasks:${BRANCH}
container_name: ${PROJECT_NAME}-tasks
restart: unless-stopped
env_file:
- .env.mongo
- .env.tasks
depends_on:
- redis
- mongo
volumes:
tipi-mongo: