-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.61 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
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./ui:/app/ui
environment:
- HOME=/root
- TERM=xterm
- VIRTUAL_HOST=site.meshtastic.org
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=site.meshtastic.org
mem_limit: 12G
ports:
- 8080:8080
depends_on:
- redis
working_dir: "/app"
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
restart: unless-stopped
networks:
- app-network
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
command: [redis-server]
restart: unless-stopped
networks:
- app-network
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- 80:80
- 443:443
environment:
- TRUST_DOWNSTREAM_PROXY=true
volumes:
# The vhost and conf volumes are only required
# if you plan to obtain standalone certificates
# - vhost:/etc/nginx/vhost.d
# - conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- app-network
acme-companion:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
environment:
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- app-network
networks:
app-network:
volumes:
# vhost:
# conf:
html:
certs:
acme: