forked from whatwedo/dde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (87 loc) · 2.69 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
version: '3.4'
services:
dnsmasq:
image: andyshinn/dnsmasq
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 8.8.8.8 --server 8.8.4.4 --log-facility=-
hostname: dnsmasq
domainname: test
container_name: dde_dnsmasq
reverseproxy:
image: jwilder/nginx-proxy
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
- ./data/reverseproxy/etc/nginx/conf.d/dde.conf:/etc/nginx/conf.d/dde.conf:ro
hostname: reverseproxy
domainname: test
container_name: dde_reverseproxy
portainer:
image: portainer/portainer
restart: unless-stopped
command: --no-auth -H unix:///var/run/docker.sock
environment:
- VIRTUAL_HOST=portainer.test
volumes:
- /var/run/docker.sock:/var/run/docker.sock
hostname: portainer
domainname: test
container_name: dde_portainer
mariadb:
image: mariadb:10.5
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
mailhog:
image: mailhog/mailhog
restart: unless-stopped
command: -storage=maildir -maildir-path=/var/lib/mailhog
environment:
- VIRTUAL_HOST=mailhog.test
- VIRTUAL_PORT=8025
volumes:
- ./data/mailhog/var/lib/mailhog:/var/lib/mailhog:delegated
ports:
- "127.0.0.1:1025:1025"
hostname: mailhog
domainname: test
container_name: dde_mailhog
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:
external:
name: "dde"
volumes:
ssh-agent_socket-dir:
name: dde_ssh-agent_socket-dir