-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (90 loc) · 2.24 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
services:
redis:
image: redis:7.4
container_name: ${PROJECT_NAME}-redis
ports:
- 6379
mongo:
image: mongo:7.0-jammy
container_name: ${PROJECT_NAME}-mongo
restart: unless-stopped
ports:
- 27017
environment:
MONGO_INITDB_ROOT_USERNAME: tipi
MONGO_INITDB_ROOT_PASSWORD: tipi
MONGO_INITDB_DATABASE: tipidb
volumes:
- ./mongo-init.js.example:/docker-entrypoint-initdb.d/mongo-init.js
- tipi-vol-mongo:/data/db
mongo-express:
image: mongo-express:latest
container_name: ${PROJECT_NAME}-mongo-express
restart: unless-stopped
ports:
- ${MONGO_EXPRESS_PORT}:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_ADMINUSERNAME: tipi
ME_CONFIG_MONGODB_ADMINPASSWORD: tipi
ME_CONFIG_BASICAUTH_USERNAME: tipi
ME_CONFIG_BASICAUTH_PASSWORD: tipi
tipi-engine:
build:
context: ${ENGINE_PATH}
dockerfile: Dockerfile-dev
container_name: ${PROJECT_NAME}-engine
restart: unless-stopped
env_file:
- ${ENGINE_PATH}/.env
volumes:
- ${ENGINE_PATH}:/app
depends_on:
- mongo
tipi-backend:
build:
context: ${BACKEND_PATH}
dockerfile: Dockerfile-dev
container_name: ${PROJECT_NAME}-backend
restart: unless-stopped
env_file:
- ${BACKEND_PATH}/.env
volumes:
- ${BACKEND_PATH}:/app
ports:
- ${BACKEND_PORT}:5000
depends_on:
- mongo
command: gunicorn --bind 0.0.0.0:5000 --access-logfile - tipi_backend.wsgi:app --reload
tipi-frontend:
build:
context: ${FRONTEND_PATH}
dockerfile: Dockerfile-dev
container_name: ${PROJECT_NAME}-frontend
restart: unless-stopped
env_file:
- ${FRONTEND_PATH}/.env
volumes:
- ${FRONTEND_PATH}:/app
- /app/node_modules
command: npm run dev -- --host
ports:
- ${FRONTEND_PORT}:5173
depends_on:
- tipi-backend
tipi-tasks:
build:
context: ${TASKS_PATH}
dockerfile: Dockerfile-dev
container_name: ${PROJECT_NAME}-tasks
restart: unless-stopped
env_file:
- ${TASKS_PATH}/.env
volumes:
- ${TASKS_PATH}:/app
depends_on:
- redis
- mongo
user: "1000:1000"
volumes:
tipi-vol-mongo: