-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
64 lines (64 loc) · 1.85 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
version: "3.9"
services:
traefik:
image: "traefik:v2.5"
container_name: "sq_traefik"
command:
- "--api.insecure=true"
- "--providers.file=true"
- "--providers.file.filename=/config/traefik.yml"
- "--entrypoints.webinsecure.address=:80"
- "--entrypoints.web.address=:443"
- "--entryPoints.web.proxyProtocol.insecure"
- "--entryPoints.web.forwardedHeaders.insecure"
- "--certificatesresolvers.tlsresolver.acme.email=email@example.com"
- "--certificatesresolvers.tlsresolver.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.tlsresolver.acme.httpchallenge=true"
- "--certificatesresolvers.tlsresolver.acme.httpchallenge.entrypoint=webinsecure"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- ./letsencrypt:/letsencrypt
- ./traefik.yml:/config/traefik.yml
# nginx:
# image: "nginx:latest"
# container_name: "sq_nginx"
# restart: always
# ports:
# - "80:80"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf
database:
container_name: sq_mongodb
image: mongo:6.0
ports:
- "127.0.0.1:27017:27017"
volumes:
- ./data:/data/db
api:
container_name: sq_api
image: ghcr.io/tdjsnelling/sqtracker-api:latest
ports:
- "127.0.0.1:3001:3001"
volumes:
- type: bind
source: ./config.js
target: /sqtracker/config.js
depends_on:
- database
client:
container_name: sq_client
image: ghcr.io/tdjsnelling/sqtracker-client:latest
ports:
- "127.0.0.1:3000:3000"
volumes:
- type: bind
source: ./config.js
target: /sqtracker/config.js
# - ./favicon.png:/sqtracker/public/favicon.png
# - ./favicon.ico:/sqtracker/public/favicon.ico
depends_on:
- api