This repository was archived by the owner on Jul 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 2.2 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 2.2 KB
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
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
depends_on:
- traefik
app:
image: costumeserver
restart: always
ports:
- "1300:3000"
volumes:
- ./images:/usr/src/app/images
- ./log.log:/usr/src/app/log.log
depends_on:
- db
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.app.rule=Host(`cat.arisamiga.rocks`) || Host(`13.48.35.184`)"
- "traefik.http.services.app.loadbalancer.server.port=3000"
- "traefik.http.routers.app.entrypoints=web"
- "traefik.http.routers.app-secure.entrypoints=websecure"
- "traefik.http.routers.app-secure.rule=Host(`cat.arisamiga.rocks`)"
- "traefik.http.routers.app-secure.tls=true"
- "traefik.http.routers.app.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.app-secure.tls.certresolver=le"
traefik:
image: traefik:v3.1.2
restart: always
command:
- "--api.insecure=false"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.storage=/acme.json"
- "--certificatesresolvers.le.acme.tlschallenge=true"
- "--certificatesresolvers.le.acme.httpChallenge.entryPoint=web"
ports:
- "80:80"
# - "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./acme.json:/acme.json
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.traefik.rule=Host(`t.localhost`)"
# - "traefik.http.services.traefik.loadbalancer.server.port=8080"
# - "traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$Xl6OyG7o$$6gWRnAp6k7z71koP6Hxay/"
# - "traefik.http.routers.traefik.middlewares=traefik-auth"
# - "traefik.http.routers.traefik.middlewares=auth"