2021-02-27 20:07:48 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
backend:
|
2021-12-13 19:44:09 +00:00
|
|
|
image: data_coop_membersystem:dev
|
2021-02-27 20:07:48 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
command: python /app/src/manage.py runserver 0.0.0.0:8000
|
|
|
|
tty: true
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
volumes:
|
|
|
|
- ./:/app/
|
2021-12-13 19:44:09 +00:00
|
|
|
depends_on:
|
2021-02-27 20:07:48 +00:00
|
|
|
- postgres
|
2023-01-22 09:20:41 +00:00
|
|
|
- keycloak
|
2021-02-27 20:07:48 +00:00
|
|
|
env_file:
|
|
|
|
- env
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:13-alpine
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
env_file:
|
|
|
|
- env
|
|
|
|
|
2023-01-22 09:20:41 +00:00
|
|
|
keycloak_db:
|
|
|
|
image: postgres:13-alpine
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
env_file:
|
|
|
|
- env
|
|
|
|
|
|
|
|
keycloak:
|
|
|
|
image: "quay.io/keycloak/keycloak:20.0"
|
|
|
|
restart: "unless-stopped"
|
|
|
|
command:
|
|
|
|
- "start-dev"
|
|
|
|
- "--db=postgres"
|
|
|
|
- "--db-url=jdbc:postgresql://keycloak_db:5432/postgres"
|
|
|
|
- "--db-username=postgres"
|
|
|
|
- "--db-password=postgres"
|
|
|
|
- "--hostname=localhost"
|
|
|
|
- "--http-relative-path=/auth"
|
|
|
|
|
|
|
|
|
2021-02-27 20:07:48 +00:00
|
|
|
volumes:
|
|
|
|
postgres_data:
|