-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.example.yml
47 lines (43 loc) · 1.3 KB
/
docker-compose.example.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:
app:
build: .
container_name: app
restart: unless-stopped
environment:
- TINSHOP_HOST=tinshop.example.com
- TINSHOP_PROTOCOL=https
- TINSHOP_NAME=TinShop
- TINSHOP_REVERSEPROXY=true
- TINSHOP_WELCOMEMESSAGE=Welcome to TinShop!
- TINSHOP_NOWELCOMEMESSAGE=false
- TINSHOP_DEBUG_NFS=false
- TINSHOP_DEBUG_NOSECURITY=false
- TINSHOP_DEBUG_TICKET=false
- TINSHOP_NSP_CHECKVERIFIED=true
- TINSHOP_SOURCES_DIRECTORIES=/games
- TINSHOP_SECURITY_WHITELIST=0000000000000000000000000000000000000000000000000000000000000000 1111111111111111111111111111111111111111111111111111111111111111
ports:
- 3000:3000
volumes:
- /media/switch:/games
nginx:
image: nginx
container_name: nginx
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./certs:/etc/letsencrypt
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./certs:/etc/letsencrypt
- ./certbot/conf:/etc/letsencrypt
command: certonly --webroot --webroot-path=/var/www/certbot --email=<your-email> --agree-tos --no-eff-email --staging -d <your-domain-name>