-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
82 lines (81 loc) · 1.55 KB
/
docker-compose.yaml
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
name: toc
services:
web:
build: ./web
hostname: apache-server
# depends_on:
# - db
# - file
ports:
- "8080:80"
- "8443:443"
db:
build: ./db
hostname: mysql-server
# restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
- "33060:33060"
file:
build: ./file
hostname: samba-server
# restart: always
environment:
USER: user
PASS: password
ports:
- "139:139"
- "445:445"
mail:
build: ./mail
hostname: apache-james-server
ports:
- "25:25"
- "465:465"
- "587:587"
- "143:143"
- "993:993"
# dns:
# build: ./dns
# hostname: dnsmasq-server
# environment:
# DNS1: "1.0.0.1"
# DNS2: "1.1.1.1"
# ports:
# - 53:53/udp
# - 53:53/tcp
# extra_hosts:
# - "mail=192.168.56.10"
# cap_add:
# - NET_ADMIN
# volumes:
# - ./dns/dnsmasq.d/:/etc/dnsmasq.d/
# - ./dns/dnsmasq.conf:/etc/dnsmasq.conf
# - ./dns/banner_add_hosts:/etc/banner_add_hosts
toc-frontend:
build: ./toc-frontend
toc-backend:
build: ./toc-backend
toc:
build: ./toc
hostname: toc-controller
environment:
HOST: 0.0.0.0
PORT: 80
ports:
- "80:80"
depends_on:
- toc-frontend
- toc-backend
- web
- db
- file
- mail
extra_hosts:
- "main:192.168.56.10"
- "stepup:192.168.56.20"