-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·67 lines (66 loc) · 1.63 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
version: '3.9'
services:
proxy:
build:
context: .
dockerfile: proxy.dockerfile
container_name: '${PROXY}'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- 'proxy-certs:/etc/nginx/certs:rw'
- 'proxy-conf:/etc/nginx/conf.d'
- 'proxy-html:/usr/share/nginx/html'
- 'proxy-htpasswd:/etc/nginx/htpasswd:ro'
- 'proxy-vhost:/etc/nginx/vhost.d'
networks:
- proxy-tier
proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: '${LETS_ENCRYPT}'
restart: unless-stopped
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- 'proxy-certs:/etc/nginx/certs:rw'
- 'proxy-conf:/etc/nginx/conf.d'
- 'proxy-html:/usr/share/nginx/html'
- 'proxy-htpasswd:/etc/nginx/htpasswd:ro'
- 'proxy-vhost:/etc/nginx/vhost.d'
environment:
NGINX_PROXY_CONTAINER: '${PROXY}'
db:
image: mysql:8.0.23
container_name: db
restart: unless-stopped
ports:
- '3306:3306'
environment:
- 'MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}'
volumes:
- db-volume:/var/lib/mysql
- './etc/mysql/conf.d:/etc/mysql/conf.d'
cap_add:
- SYS_NICE # Silence mbind errors: mbind: Operation not permitted
networks:
- proxy-tier
redis:
image: 'redis:alpine'
container_name: redis
restart: unless-stopped
ports:
- '6379:6379'
networks:
- proxy-tier
volumes:
db-volume:
proxy-certs:
proxy-conf:
proxy-html:
proxy-htpasswd:
proxy-vhost:
networks:
proxy-tier:
driver: bridge