forked from pvarki/docker-atak-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.tpl
77 lines (71 loc) · 1.55 KB
/
docker-compose.yml.tpl
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
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.4'
services:
takserver:
image: pvarki/takserver:4.7-RELEASE-32
build:
context: .
dockerfile: Dockerfile
env_file:
- 'takserver.env'
depends_on:
- "takdb"
volumes:
- 'takserver_logs:/opt/tak/data/logs'
- 'takserver_certs:/opt/tak/data/certs'
networks:
- taknet
ports:
- '8443:8443'
- '8444:8444'
- '8446:8446'
- '8089:8089'
certapi:
image: pvarki/takserver:certsapi-latest
build:
target: production
context: .
dockerfile: python-takcertsapi/Dockerfile
env_file:
- 'takserver.env'
depends_on:
- "takserver"
volumes:
- 'takserver_certs:/opt/tak/data/certs'
networks:
- taknet
expose:
- 8000
ports:
- "8000:8000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.fastapi.rule=Host(`{{.Env.TAK_SERVER_ADDRESS}}`)"
- "traefik.http.routers.fastapi.tls=true"
- "traefik.http.routers.fastapi.tls.certresolver=letsencrypt"
traefik:
image: traefik:v2.2
networks:
- taknet
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "$PWD/traefik.toml:/etc/traefik/traefik.toml"
takdb:
image: postgis/postgis:15-3.3
networks:
- taknet
env_file:
- 'takserver.env'
volumes:
- 'takdb_data:/var/lib/postgresql/data'
networks:
taknet:
volumes:
takdb_data:
driver: local
takserver_logs:
driver: local
takserver_certs:
driver: local