-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.34 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
version: "3.5"
services:
database:
build:
dockerfile: postgres.Dockerfile
context: .
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
networks:
- rt-office
volumes:
- rt-office-db:/var/lib/postgresql/data
keycloak:
image: jboss/keycloak:9.0.2
ports:
- 5003:8080
environment:
- DB_VENDOR=postgres
- DB_ADDR=database
- DB_PORT=5432
- DB_DATABASE=keycloak
- DB_USER=postgres
- DB_PASSWORD=password
- KEYCLOAK_USER=keycloak
- KEYCLOAK_PASSWORD=password
depends_on:
- database
networks:
- rt-office
nextcloud:
build:
dockerfile: nextcloud.Dockerfile
context: .
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=database
volumes:
- rt-office-nextcloud:/var/www/html
ports:
- 5002:80
networks:
- rt-office
depends_on:
- database
- keycloak
networks:
# Network has to be created externally prior to building the app.
# > docker network create rt-office
rt-office:
volumes:
# Create ext. volumes by:
# > docker volume create rt-office-db
# > docker volume create rt-office-nextcloud
rt-office-db:
external: true
rt-office-nextcloud:
external: true