-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
65 lines (62 loc) · 1.7 KB
/
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
services:
traefik:
image: traefik:v2.10.7
ports:
- "80:80"
- "443:443"
# remove port 8080 for production
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.yml:/etc/traefik/traefik.yml
- ./traefik/ssl/:/ssl-certs/
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "3"
optimal-settings-frontend:
build:
context: optimal-settings-frontend
args:
- NEXT_PUBLIC_CAPTCHA_SITE_KEY=1x00000000000000000000AA
ports:
- 3000:3000
environment:
- BACKEND_PROTOCOL=http
- BACKEND_HOST=optimal-settings-backend
- BACKEND_PORT=3001
- PUBLIC_BACKEND_PROTOCOL=https
- PUBLIC_BACKEND_HOST=api.localhost
- PUBLIC_BACKEND_PORT=443
labels:
- "traefik.enable=true"
- "traefik.http.routers.optimal-settings-frontend.rule=Host(`localhost`)"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "3"
optimal-settings-backend:
build: optimal-settings-backend
ports:
- 3001:3001
environment:
- DATABASE_URL=sqlite:data/db/optimal-settings.db
- JWT_SECRET=secret
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
- CAPTCHA_SECRET_KEY=1x0000000000000000000000000000000AA
volumes:
- ./optimal-settings-backend/data:/app/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.optimal-settings-backend.rule=Host(`api.localhost`)"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "3"