This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
forked from Schmidt-jan/Schach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (62 loc) · 1.36 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
version: "3.3"
services:
model:
container_name: "model-service"
build:
context: ./Model
dockerfile: ./Dockerfile
ports:
- "8082:8082"
stdin_open: true
tty: true
persistence:
container_name: "persistence-service"
build:
context: ./Persistence
dockerfile: ./Dockerfile
ports:
- "8081:8081"
stdin_open: true
tty: true
#TODO: call other rest apis via docker service name
root:
container_name: "root-service"
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
stdin_open: true
tty: true
depends_on:
- persistence
- model
environment:
DISPLAY: 192.168.0.165:0.0 #Insert your IP here and start X-Server
network_mode: "host"
postgres:
# docker-compose exec postgres /bin/bash
image: postgres
hostname: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: schachmeister420
POSTGRES_PASSWORD: schachconnoisseur
POSTGRES_DB: schachdb
volumes:
- db:/var/lib/postgresql/data
restart: unless-stopped
mongodb:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: schachconnoisseur
ports:
- "27017:27017"
volumes:
- db:/var/lib/mongo/data
restart: unless-stopped
volumes:
db:
driver: local