-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
74 lines (69 loc) · 1.43 KB
/
docker-compose.yaml
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
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- 80:80
- 443:443
volumes:
# The vhost and conf volumes are only required
# if you plan to obtain standalone certificates
# - conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- DEFAULT_HOST=charlieavery.site
networks:
- web
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
environment:
- DEFAULT_EMAIL=${EMAIL}
volumes_from:
- nginx-proxy
volumes:
- vhost:/etc/nginx/vhost.d
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- web
sveltekit:
restart: always
build: .
command: node --env-file=.env build
expose:
- 3000
volumes:
- ./src/:/app/src/
env_file:
- .env
depends_on:
- nginx-proxy
networks:
- web
nginx:
build: ./nginx
expose:
- 5174
environment:
- VIRTUAL_HOST=charlieavery.site
- LETSENCRYPT_HOST=charlieavery.site
depends_on:
- sveltekit
- nginx-proxy
networks:
- web
volumes:
# conf:
vhost:
html:
certs:
acme:
networks:
web:
name: web
driver: bridge