-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
114 lines (105 loc) · 2.63 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
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
108
109
110
111
112
113
114
version: '3.5'
services:
web:
image: nginx:stable
depends_on:
- keycloak
volumes:
- ./provisioning/nginx/nginx-dev.conf:/etc/nginx/nginx.conf
ports:
- '80:80'
frontend:
image: danlynn/ember-cli:4.8.0
volumes:
- ./frontend:/myapp
tmpfs:
- /myapp/tmp
depends_on:
- timedbackend
command: ember server --proxy http://backend:3000
ports:
- '4200:4200'
- '7020:7020'
- '7357:7357'
redis:
image: redis:6
ports:
- '6379:6379'
postgres:
image: postgres:12
volumes:
- postgres:/var/lib/postgresql/data
- ./provisioning/postgres/setup/:/docker-entrypoint-initdb.d/
- ./provisioning/postgres/timed-test-data.sql:/tmp/timed-test-data.sql
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=customercenter
ports:
- '5432:5432'
pgadmin:
image: fenglc/pgadmin4
depends_on:
- postgres
environment:
- DEFAULT_USER=admin
- DEFAULT_PASSWORD=admin
ports:
- '5050:5050'
timedbackend:
image: adfinissygroup/timed-backend:latest
depends_on:
- postgres
environment:
- DJANGO_OIDC_CREATE_USER=True
- DJANGO_OIDC_CHECK_INTROSPECT=True
- DJANGO_OIDC_CLIENT_ID=timed-confidential
- DJANGO_OIDC_CLIENT_SECRET=802635ae-2395-4419-b15b-b09dc838db14
- DJANGO_OIDC_DEFAULT_BASE_URL=http://keycloak:8080/auth/realms/master/protocol/openid-connect
- DJANGO_DATABASE_HOST=postgres
- DJANGO_DATABASE_PORT=5432
- DJANGO_DATABASE_USER=test
- DJANGO_DATABASE_PASSWORD=test
- DJANGO_DATABASE_NAME=timed
- ENV=docker
- STATIC_ROOT=/var/www/static
ports:
- '8000:80'
keycloak:
image: jboss/keycloak:10.0.2
depends_on:
- postgres
volumes:
- ./provisioning/keycloak/:/etc/keycloak/
environment:
- DB_VENDOR=postgres
- DB_ADDR=postgres
- DB_USER=test
- DB_PASSWORD=test
- DB_DATABASE=customercenter
- IDP_USER=admin
- IDP_PASSWORD=admin
- PROXY_ADDRESS_FORWARDING=true
ports:
- "8080:8080"
# http://www.keycloak.org/docs/3.3/server_admin/topics/export-import.html
command:
[
"-Dkeycloak.migration.action=import",
"-Dkeycloak.migration.provider=singleFile",
"-Dkeycloak.migration.file=/etc/keycloak/config.json",
"-b",
"0.0.0.0",
]
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- '8025:8025'
volumes:
postgres:
name: customercenter-postgres
driver: local
networks:
default:
name: timed.local
driver: bridge