forked from Labelix/Labelix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (101 loc) · 2.97 KB
/
docker-compose.yml
File metadata and controls
107 lines (101 loc) · 2.97 KB
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
version: '3.1'
services:
postgresdb:
container_name: postgresdb
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=sicheres123Passwort
volumes:
- ./docker/database/dbscripts:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- labelixNetwork
postgres-keycloak:
image: postgres
restart: always
volumes:
- postgres-keycloak_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
networks:
- labelixNetwork
keycloak:
container_name: keycloak
build:
context: ./docker/keycloak
dockerfile: ./Dockerfile
restart: always
command: -Dkeycloak.profile.feature.upload_scripts=enabled
environment:
- DB_VENDOR=POSTGRES
- DB_ADDR=postgres-keycloak
- DB_PORT=5432
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_SCHEMA=public
- DB_PASSWORD=password
- KEYCLOAK_IMPORT=/tmp/keycloak/realm.json
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=5pmna0
- PROXY_ADDRESS_FORWARDING=true
ports:
- 8180:8080
volumes:
- ./docker/keycloak/:/tmp/keycloak
- ./docker/keycloak/material:/opt/jboss/keycloak/themes/material
networks:
- labelixNetwork
depends_on:
- postgres-keycloak
webapi:
container_name: webapi
build:
context: ./backend/Labelix-Backend
dockerfile: ./Labelix.WebAPI/Dockerfile
restart: always
ports:
- 8080:80
links:
- postgresdb
volumes:
- ./docker/backendData/Images:/app/Ressources/Images
- ./docker/backendData/Labels:/app/Ressources/Labels
networks:
- labelixNetwork
frontend:
build:
context: ./frontend/labelix-web-app
dockerfile: ./Dockerfile
restart: always
ports:
- 4200:80
links:
- webapi
networks:
- labelixNetwork
reverseproxy:
image: nginx
restart: always
ports:
- 80:80
- 443:443
links:
- webapi
networks:
- labelixNetwork
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- ./docker/reverseproxy/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- webapi
- keycloak
volumes:
postgres_data:
postgres-keycloak_data:
networks:
labelixNetwork: