-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 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
version: '2'
volumes:
landscape-config: {}
landscape-data: {}
landscape-ssl: {}
postgres-data: {}
services:
rabbitmq:
platform: linux/amd64
image: rabbitmq:3.7.14-management
hostname: rabbitmq
server:
build: server
hostname: server # must match crt for use by landscape-config
depends_on:
postgres:
condition: service_started
rabbitmq:
condition: service_started
ports:
- "80:80"
- "443:443"
environment:
DB_HOST: postgres
DB_LANDSCAPE_PASS: password
DB_PASS: password
DB_PORT: '5432'
DB_USER: postgres
INITIALIZE_SCHEMA: 'yes'
UPGRADE_SCHEMA: 'yes'
RMQ_HOST: rabbitmq
STARTUP_WAIT_TIME: '15'
SMTP_HOST: yourstmpserver
SMTP_PORT: '587'
SMTP_USER: [email protected]
SMTP_FROM: [email protected]
SMTP_PASS: password
SMTP_TLS: 'yes'
SMTP_AUTH: 'yes'
SMTP_DOMAIN: yourdomain.lan
volumes:
- landscape-config:/etc/landscape
- landscape-data:/var/lib/landscape
- landscape-ssl:/etc/ssl
- ./server/assets/ldap.conf:/opt/canonical/ldap/etc/ldap.conf
- ./server/assets/apache-landscape.conf:/etc/apache2/sites-available/landscape.conf
- ./server/assets/entrypoint.sh:/sbin/entrypoint.sh
postgres:
build: postgres
hostname: postgres
environment:
POSTGRES_PASSWORD: password
volumes:
- postgres-data:/var/lib/postgresql/data
s6demo:
build: s6demo
hostname: s6demo
volumes:
- ./server/assets/certs/landscape_server.pem:/etc/ssl/certs/landscape_server.pem