forked from ATNoG/NEF_emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
115 lines (105 loc) · 2.68 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
version: "3.9"
services:
db:
image: postgres:12
command: -c shared_buffers=256MB -c max_connections=200
profiles: ["debug", "dev"]
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
pgadmin:
image: dpage/pgadmin4
profiles: ["debug"]
ports:
- "5050:5050"
volumes:
- ./pgadmin/servers.json:/pgadmin4/servers.json
env_file:
- .env
logging:
driver: none
mongo:
image: mongo:4.4.10
profiles: ["debug", "dev"]
volumes:
- app-mongo-db-data:/data/db
restart: always
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGO_USER}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGO_PASSWORD}"
mongo-express:
image: mongo-express:1.0.0-alpha.4
profiles: ["debug"]
restart: always
ports:
- 8081:8081
env_file:
- .env
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: "${MONGO_USER}"
ME_CONFIG_MONGODB_ADMINPASSWORD: "${MONGO_PASSWORD}"
ME_CONFIG_MONGODB_URL: mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017/
ME_CONFIG_MONGODB_ENABLE_ADMIN: "${MONGO_EXPRESS_ENABLE_ADMIN}"
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
# producer:
# image: '${DOCKER_IMAGE_PRODUCER?Variable not set}:${TAG-latest}'
# profiles: ["debug", "dev"]
# restart: unless-stopped
# depends_on:
# - rabbitmq
# build:
# context: ./backend
# dockerfile: Dockerfile.producer
report:
image: '${DOCKER_IMAGE_REPORT?Variable not set}:${TAG-latest}'
profiles: ["debug", "dev"]
ports:
- "3000:3000"
volumes:
- shared-data:/shared
env_file:
- .env
build:
context: ./backend
dockerfile: Dockerfile.report
backend:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
profiles: ["debug", "dev"]
command: /start-reload.sh
ports:
- "${SERVER_PORT}:80"
volumes:
- ./backend/app:/app
- shared-data:/shared
env_file:
- .env
environment:
- SERVER_NAME=${DOMAIN?Variable not set}
- SERVER_HOST=https://${DOMAIN?Variable not set}
# Allow explicit env var override for tests
- SMTP_HOST=${SMTP_HOST}
depends_on:
- rabbitmq
build:
context: ./backend
dockerfile: Dockerfile.backend
args:
INSTALL_DEV: ${INSTALL_DEV-true}
INSTALL_JUPYTER: ${INSTALL_JUPYTER-true}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
app-db-data:
pgadmin-data:
app-mongo-db-data:
shared-data: