This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
140 lines (129 loc) · 3.94 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.8"
services:
web-server:
build:
context: server/
dockerfile: server.Dockerfile
container_name: web-server
depends_on:
- rabbitmq
- postgres
volumes:
- ./server:/server
ports:
- 8000:8000
reverse-proxy:
build:
context: backend/services/nginx
dockerfile: nginx.Dockerfile
depends_on:
- web-server
container_name: nginx
volumes:
- ./backend/services/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 3000:3000
# schemaspy:
# build:
# context: backend/services/schemaspy
# dockerfile: schemaspy.Dockerfile
# depends_on:
# - postgres
# volumes:
# - ./backend/services/schemaspy/output:/output
# - ./backend/services/schemaspy:/worker
# tty: true
# command: tail -f /dev/null
postgres:
build:
context: backend/services/postgres
dockerfile: postgres.Dockerfile
environment:
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
POSTGRES_DB: "aladin"
ports:
- "5432:5432"
volumes:
- ./backend/services/postgres/data:/var/lib/postgresql/data/
# postgres_MA:
# container_name: postgres_MA
# build:
# context: backend/services/postgres
# dockerfile: postgres.Dockerfile
# environment:
# POSTGRES_USER: "admin"
# POSTGRES_PASSWORD: "admin"
# POSTGRES_DB: "aladin"
# ports:
# - "5430:5430"
# volumes:
# - C:/Users/pcr/Desktop/postgres_MA/:/var/lib/postgresql/data/
# mongodb:
# build:
# context: backend/services/mongodb
# dockerfile: mongodb.Dockerfile
# container_name: mongodb
# environment:
# MONGO_INITDB_ROOT_USERNAME: "admin"
# MONGO_INITDB_ROOT_PASSWORD: "admin"
# ports:
# - "27017:27017"
# volumes:
# - "./backend/services/mongodb/data:/bitnami/mongodb"
# restart: unless-stopped
minio:
# build:
# context: backend/services/minio
# dockerfile: minio.Dockerfile
image: bitnami/minio:2020.2.20
container_name: minio
ports:
- "9000:9000"
volumes:
- "./backend/services/minio/data:/data"
environment:
MINIO_ACCESS_KEY: minio_access_key
MINIO_SECRET_KEY: minio_secret_key
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: admin
restart: unless-stopped
rabbitmq:
build:
context: backend/services/rabbitmq
dockerfile: rabbitmq.Dockerfile
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
volumes:
- ./backend/services/rabbitmq/etc/:/etc/rabbitmq/
- ./backend/services/rabbitmq/data:/var/lib/rabbitmq/mnesia/
- ./backend/services/rabbitmq/logs:/var/log/rabbitmq/
backend:
build:
context: backend
dockerfile: orchestrator.Dockerfile
depends_on:
- reverse-proxy
- web-server
- rabbitmq
- postgres
container_name: backend
volumes:
- ./backend:/backend
maxima:
build:
context: backend/services/maxima
dockerfile: maxima.Dockerfile
container_name: maxima
volumes:
- ./backend/services/maxima/:/worker/
volumes:
mongodb_data:
postgres-data: