-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.13 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
version: "3"
services:
liferay:
build:
dockerfile: liferay/Dockerfile
context: .
args:
- BASE_IMAGE=liferay/portal:7.4.3.112-ga112
ports:
- "80:8080"
env_file:
- ./liferay/variables.env
volumes:
- liferay_data:/opt/liferay/data
- ./liferay/files:/mnt/liferay/files
depends_on:
- db
- sso
entrypoint: /usr/local/bin/wait-for -t 60 db:3306 -- /usr/local/bin/liferay_entrypoint.sh
db:
image: mysql:8
env_file:
- ./mysql/variables.env
volumes:
- ./mysql/initdb.d:/docker-entrypoint-initdb.d
- db_data:/var/lib/mysql
cap_add:
- SYS_NICE
mail:
image: rnwood/smtp4dev:v3
ports:
- "5000:80"
volumes:
- smtp_data:/smtp4dev
sso:
image: quay.io/keycloak/keycloak
ports:
- "8080:8080"
env_file:
- ./keycloak/variables.env
volumes:
- ./keycloak/liferay-realm.json:/opt/keycloak/data/import/liferay-realm.json
depends_on:
- db
command:
- start-dev
- --hostname-url=http://sso:8080/
- --import-realm
volumes:
liferay_data:
smtp_data:
db_data: