forked from o19s/quepid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.58 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
version: '3'
services:
app:
container_name: quepid_app
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env
environment:
- LAUNCHY_DRY_RUN=true # dev only letter_opener gem wants to open a browser when sending emails.
- BROWSER=/dev/null
volumes:
- .:/srv/app
- ./log:/log
ports:
- 3000:3000
links:
- mysql
- redis
- keycloak
depends_on:
- mysql
- redis
- keycloak
mysql:
container_name: quepid_db
image: mysql:5.6.37
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=password
redis:
container_name: quepid_redis
image: redis:6.0.5
ports:
- 6379:6379
keycloak:
image: quay.io/keycloak/keycloak:13.0.0
container_name: quepid_keycloak
hostname: keycloak
command: ["-b", "0.0.0.0", "-Dkeycloak.migration.action=import", "-Dkeycloak.migration.provider=dir", "-Dkeycloak.migration.dir=/opt/jboss/keycloak/realm-config", "-Dkeycloak.migration.strategy=OVERWRITE_EXISTING", "-Djboss.socket.binding.port-offset=1000", "-Dkeycloak.profile.feature.upload_scripts=enabled"]
ports:
- 9080:9080
- 9443:9443
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: password
DB_VENDOR: h2
volumes:
- ./keycloak/realm-config:/opt/jboss/keycloak/realm-config
nginx:
image: nginx:1.21.4
container_name: quepid_nginx
ports:
- "443:8443"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./.ssl/:/etc/nginx/certs
links:
- app