-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
71 lines (66 loc) · 1.92 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
### Example RUGS configuration with HTTPS using docker-compose
# This should run RUGS with HTTPS out of the box, using Let's Encrypt
# certificates.
#
# To get this working, you need to:
# 1. Update DEFAULT_EMAIL to a real email address that will be sent to let's
# encrypt to give you status updates on your SSL certificate
# 2. Set up a DNS name and point it to this machine
# 3. Update VIRTUAL_HOST and LETSENCRYPT_HOST to point to the DNS name you
# configured above
# 4. Update RUGS_USER_AUTH and RUGS_CI_AUTH to have actually secure password
# 5. `docker-compose up -d`
#
# You should now be able to access RUGS via https://rugs.example.com with a
# valid certificate and default port.
version: "3.8"
services:
# Root vhost proxy
nginx-proxy:
container_name: nginx-proxy
restart: always
image: nginxproxy/nginx-proxy:latest
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- "./nginx-proxy/certs:/etc/nginx/certs"
- "./nginx-proxy/vhost:/etc/nginx/vhost.d"
- "./nginx-proxy/html:/usr/share/nginx/html"
networks:
- nginx-proxy
# letsencrypt renewal service
acme-companion:
restart: always
image: nginxproxy/acme-companion:latest
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- "./acme-companion/etc:/etc/acme.sh"
environment:
DEFAULT_EMAIL: [email protected]
# RUGS service
rugs:
container_name: rugs
restart: always
image: ghcr.io/jorgenpt/rugs:latest
volumes:
- type: volume
source: rugs_data
target: /data
expose:
- 3000
environment:
VIRTUAL_HOST: rugs.example.com
LETSENCRYPT_HOST: rugs.example.com
RUGS_USER_AUTH: "user:personal_secret"
RUGS_CI_AUTH: "ci:more_secreter_secret"
networks:
- nginx-proxy
networks:
nginx-proxy:
driver: bridge
volumes:
rugs_data: