-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
78 lines (72 loc) · 2.23 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
services:
dnsmasq:
image: 4km3/dnsmasq:2.85-r2
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "127.0.0.1:53:53/tcp"
- "127.0.0.1:53:53/udp"
command: --address=/.test/127.0.0.1 --server ${DDE_DNS_FORWARD_1-8.8.8.8} --server ${DDE_DNS_FORWARD_2:-8.8.4.4} --log-facility=-
hostname: dnsmasq
domainname: test
container_name: dde_dnsmasq
reverseproxy:
image: jwilder/nginx-proxy:1.3.1
restart: unless-stopped
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
environment:
- SSL_POLICY=Mozilla-Modern
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./data/reverseproxy/etc/nginx/certs:/etc/nginx/certs:ro
- ./data/reverseproxy/etc/nginx/vhost.d:/etc/nginx/vhost.d:ro
- ./config/reverseproxy/etc/nginx/conf.d/dde.conf:/etc/nginx/conf.d/dde.conf:ro
hostname: reverseproxy
domainname: test
container_name: dde_reverseproxy
mariadb:
image: mariadb:10.11
restart: unless-stopped
ports:
- "127.0.0.1:3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./data/mariadb/var/lib/mysql:/var/lib/mysql:delegated
hostname: mariadb
domainname: test
container_name: dde_mariadb
mailcrab:
image: marlonb/mailcrab:latest
restart: unless-stopped
environment:
- VIRTUAL_HOST=mailcrab.test
- VIRTUAL_PORT=1080
ports:
- "127.0.0.1:1025:1025"
hostname: mailcrab
domainname: test
container_name: dde_mailcrab
ssh-agent:
build:
context: docker/ssh-agent/.
restart: unless-stopped
environment:
- DDE_UID=${DDE_UID}
- DDE_GID=${DDE_GID}
volumes:
- ~/.ssh:/home/dde/.ssh
- ssh-agent_socket-dir:/tmp/ssh-agent
hostname: ssh-agent
domainname: test
container_name: dde_ssh-agent
networks:
default:
name: "dde"
external: true
volumes:
ssh-agent_socket-dir:
name: dde_ssh-agent_socket-dir