-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.proxy.yml
65 lines (65 loc) · 1.53 KB
/
docker-compose.proxy.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
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
env_file:
- .env
environment:
DEFAULT_HOST: ${DWPA_VIRTUAL_HOST:-localhost}
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- .docker/nginx-proxy.conf:/etc/nginx/conf.d/nginx-proxy.conf:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
restart: always
depends_on:
- nginx-proxy
env_file:
- .env
environment:
DEFAULT_EMAIL: $DWPA_MAIL_FROM
NGINX_PROXY_CONTAINER: nginx-proxy
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
web:
ports: !override
- 80
depends_on:
- nginx-proxy
environment:
VIRTUAL_HOST: ${DWPA_VIRTUAL_HOST:-localhost}
LETSENCRYPT_HOST: ${DWPA_VIRTUAL_HOST:-localhost}
database:
ports: !override
- 3306
phpmyadmin:
ports: !override
- 80
depends_on:
- nginx-proxy
environment: !override
VIRTUAL_HOST: ${DWPA_VIRTUAL_HOST_PMA:-localhost}
LETSENCRYPT_HOST: ${DWPA_VIRTUAL_HOST_PMA:-localhost}
HIDE_PHP_VERSION: "true"
PMA_HOST: database
PMA_USER:
PMA_PASSWORD:
volumes:
conf:
vhost:
html:
certs:
acme: