-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 loc) · 1.16 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
version: "3.6"
services:
api:
build: ./api
image: mgc-api:1.0
container_name: mgc-api
restart: unless-stopped
environment:
- DB_URL=jdbc:postgresql://db:5432/mgc
- DB_USER=wally
- DB_PWD=password
- EXERCISE_PATH=/tmp
ports:
- "8090:8090"
depends_on:
- db
# - auth
networks:
- backend
db:
image: postgres:12-alpine
restart: unless-stopped
container_name: mgc-db
environment:
- POSTGRES_USER=wally
- POSTGRES_PASSWORD=password
- POSTGRES_DB=mgc
ports:
- "5432:5432"
volumes:
- backend
networks:
- backend
# auth:
# image: jboss/keycloak:11.0.0
# restart: unless-stopped
# container_name: mgc-auth
# ports:
# - "8089:8080"
# depends_on:
# - db
# environment:
# - KEYCLOAK_USER=admin
# - KEYCLOAK_PASSWORD=123
# - DB_VENDOR = postgres
# - DB_ADDR=postgresql
# - DB_PORT=5432
# - DB_DATABASE=mgc
# - DB_SCHEMA=keycloak
# - DB_USER=wally
# - DB_PASSWORD=password
# networks:
# - backend
networks:
# frontend:
backend:
volumes:
mgc-db: