-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·57 lines (53 loc) · 1.39 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
version: "3.3"
services:
backend:
image: flask-app
container_name: flask-app
build:
context: .
dockerfile: Dockerfile.app
volumes:
- ./app/client_secrets.json:/home/flaskuser/app/client_secrets.json
- ./app/static/:/home/flaskuser/app/static/
depends_on:
- keycloak
restart: unless-stopped
nginx:
container_name: nginx_proxy
image: nginx
ports:
- 80:80
- 443:443
depends_on:
- backend
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
- ./params/:/etc/nginx/params/
- ./app/static/:/etc/nginx/static/
restart: unless-stopped
postgresql:
image: bitnami/postgresql:11
environment:
- POSTGRESQL_DATABASE=xxxx
- POSTGRESQL_USERNAME=xxxx
- POSTGRESQL_PASSWORD=xxxx
volumes:
- postgres-data:/bitnami/postgresql/
restart: unless-stopped
keycloak:
image: bitnami/keycloak:16
environment:
- KEYCLOAK_CREATE_ADMIN_USER=true
- KEYCLOAK_ADMIN_USER=xxxx
- KEYCLOAK_ADMIN_PASSWORD=xxxx
- KEYCLOAK_DATABASE_PASSWORD=xxxx
- KEYCLOAK_PROXY_ADDRESS_FORWARDING=true
- KC_PROXY=edge
depends_on:
- postgresql
restart: unless-stopped
volumes:
postgres-data:
driver: local