-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
61 lines (60 loc) · 1.53 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
version: "3.9"
services:
fairgame:
image: kaliburg/fairgame:latest
environment:
SPRING_PROFILE: ${PROFILE}
POSTGRES_URL: jdbc:postgresql://postgres:5432/FairGame
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
MONGO_URL: mongodb://root:${MONGO_PASSWORD}@mongo:27017/FairGame?authMechanism=DEFAULT
MONGO_HOST: mongo
MONGO_PASSWORD: ${MONGO_PASSWORD}
REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD}
MAIL_PASSWORD: ${MAIL_PASSWORD}
REMEMBER_ME_SECRET: ${REMEMBER_ME_SECRET}
SPARK_MASTER_URL: https://spark.kaliburg.de
ports:
- "10000:8080"
depends_on:
- postgres
- redis
- mongo
restart: unless-stopped
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: FairGame
ports:
- "10001:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always
mongo:
image: mongo:7
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports:
- "10002:27017"
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
restart: always
redis:
image: redis:latest
command: /bin/sh -c "redis-server --requirepass $REDIS_PASSWORD"
environment:
REDIS_HOST_PASSWORD: ${REDIS_PASSWORD}
ports:
- "10003:6379"
volumes:
- redis_data:/data
restart: always
volumes:
postgres_data:
mongo_data:
mongo_config:
redis_data: