-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
117 lines (110 loc) · 2.45 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
115
116
117
version: "3"
services:
hub:
image: ircu2:latest
hostname: hub.undernet.org
build:
context: ircu2
dockerfile: ../Dockerfile.ircu2
ports:
- "4400:4400"
- "6669:6669"
volumes:
- ./etc/hub.conf:/ircd/etc/ircd.conf
- ./etc/hub.motd:/ircd/etc/motd
networks:
undernet:
ipv4_address: 10.5.0.10
leaf:
image: ircu2:latest
hostname: leaf.undernet.org
ports:
- "4401:4400"
- "6667:6667"
volumes:
- ./etc/leaf.conf:/ircd/etc/ircd.conf
- ./etc/leaf.motd:/ircd/etc/motd
depends_on:
- hub
networks:
undernet:
ipv4_address: 10.5.0.20
db:
image: postgres:11-alpine
hostname: db.undernet.org
restart: always
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./dbinit:/docker-entrypoint-initdb.d
- ./cservice-web:/cservice-web
- ./gnuworld:/gnuworld
environment:
- POSTGRES_USER=cservice
- POSTGRES_PASSWORD=cservice
- POSTGRES_INITDB_ARGS="-E SQL_ASCII"
- LANG=C
networks:
undernet:
ipv4_address: 10.5.0.30
mail:
image: ajoergensen/mailhog
hostname: mail.undernet.org
ports:
- "1025:1025"
- "8025:8025"
networks:
undernet:
ipv4_address: 10.5.0.40
web:
build:
context: ./cservice-web
ports:
- "8080:80"
environment:
- PHP_SHORT_OPEN_TAG=On
- APACHE_ERRORLOG=/dev/stderr
- LOCALDB_USER=cservice
- LOCALDB_PASS=cservice
- LOCALDB_HOST=db.undernet.org
- REMOTEDB_NAME=cservice
- REMOTEDB_USER=cservice
- REMOTEDB_PASS=cservice
- REMOTEDB_HOST=db.undernet.org
- ENABLE_REGISTER_GLOBALS=1
- LOG_LEVEL=Logger::DEBUG
- LOG_STREAM_HANDLER=php://stdout
- SMTPHOST=mail.undernet.org:1025
volumes:
- ./cservice-web:/app
networks:
undernet:
ipv4_address: 10.5.0.50
depends_on:
- db
- mail
gnuworld:
image: gnuworld:latest
hostname: channels.undernet.org
#entrypoint: /bin/sh -c "while true; do sleep 1; done"
build:
context: .
dockerfile: Dockerfile.gnuworld
volumes:
- ./etc/gnuworld:/gnuworld/etc
networks:
undernet:
ipv4_address: 10.5.0.60
depends_on:
- db
- hub
volumes:
pgdata:
networks:
undernet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1