-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (40 loc) · 915 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (40 loc) · 915 Bytes
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
version: '3.7'
services:
web:
user: "1000:1000"
container_name: django
build:
context: .
dockerfile: resources/docker/development/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/app/
ports:
- 8000:8000
depends_on:
- db
- iam
db:
container_name: postgresql
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=george
- POSTGRES_PASSWORD=qwerty123
- POSTGRES_DB=data4life
iam:
container_name: keycloak
build:
context: .
dockerfile: resources/docker/iam/development/Dockerfile
ports:
- 8080:8080
volumes:
- keycloak-db:/opt/jboss/keycloak/standalone/data
environment:
- KEYCLOAK_USER=george
- KEYCLOAK_PASSWORD=qwerty123
volumes:
postgres_data:
keycloak-db: