-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (48 loc) · 1.44 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
version: "3.7"
networks:
web:
external: true
internal:
external: false
services:
traefik:
image: traefik:2.4.7
restart: unless-stopped
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./.docker/traefik.toml:/traefik.toml"
- "./.docker/config/dynamic-conf.toml:/config/dynamic-conf.toml"
- "./.docker/acme.json:/acme.json"
ports:
- "80:80"
- "443:443"
networks:
- web
api:
image: edintc/checq-api:latest
restart: always
volumes:
- ./api:/go/src/github.com/EdinTC/Checq/api
networks:
- internal
- web
labels:
- "traefik.http.routers.checq-api.rule=Host(`api.checq.intercube.io`)"
- "traefik.http.routers.checq-api.tls=true"
- "traefik.http.routers.checq-api.tls.certresolver=le"
- "traefik.http.routers.checq-api.middlewares=https-only@file"
- "traefik.http.services.checq-api.loadbalancer.server.port=1337"
frontend:
image: edintc/checq-frontend:latest
restart: always
volumes:
- ./frontend/public:/frontend/public
networks:
- internal
- web
labels:
- "traefik.http.routers.checq-api.rule=Host(`checq.intercube.io`)"
- "traefik.http.routers.checq-api.tls=true"
- "traefik.http.routers.checq-api.tls.certresolver=le"
- "traefik.http.routers.checq-api.middlewares=https-only@file"
- "traefik.http.services.checq-api.loadbalancer.server.port=80"