-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-client.yml
54 lines (47 loc) · 1.26 KB
/
docker-compose-client.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
version: "3.3"
services:
nginx:
build: ./srv/www
environment:
- VIRTUAL_HOST=${DOMAIN}
- LETSENCRYPT_HOST=${DOMAIN}
networks:
service_network:
nodejs-libp2p-client:
build:
context: ./srv/p2p
ports:
- 9999:9999
network_mode: "host"
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- 443:443
- 80:80
container_name: nginx-proxy
networks:
service_network:
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
depends_on:
- nginx
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
environment:
NGINX_PROXY_CONTAINER: "nginx-proxy"
networks:
service_network:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
networks:
service_network:
volumes:
nginx-certs:
nginx-vhost:
nginx-html: