-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 1.1 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
version: '3'
services:
nginx:
image: jwilder/nginx-proxy
restart: always
environment:
- TRUST_DOWNSTREAM_PROXY=false
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./vhost:/etc/nginx/vhost.d:rw
- ./certs:/etc/nginx/certs:rw
- ./html:/usr/share/nginx/html:rw
- ./acme.sh:/etc/acme.sh:rw
ports:
- "80:80"
- "443:443"
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
myapp:
restart: always
image: myapp
build:
dockerfile: Dockerfile
environment:
VIRTUAL_HOST: replace.this.host
LETSENCRYPT_HOST: replace.this.host
VIRTUAL_PORT: 8080
SECRET_KEY: sdpf9sdp0vm_REPLACE_WITH_COMPLETERANDOM_0sdu34i23u890fum8
MATPLOTLIB: false
volumes:
- ./app:/opt/myapp
- ./niceguistorage:/opt/.nicegui:rw
command: ["python3", "-u", "/opt/myapp/main.py"]
volumes:
niceguistorage: