forked from pvarki/docker-atak-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
76 lines (70 loc) · 1.54 KB
/
docker-compose.local.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
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.4'
services:
takserver:
image: "pvarki/takserver:4.7-RELEASE-32${DOCKER_TAG_EXTRA}"
build:
context: .
dockerfile: Dockerfile
cache_from: [ "pvarki/tak-server-dist:4.7-RELEASE-32" ]
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${DOCKER_TAG_EXTRA}"
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(`takcertsapi.localhost`)"
traefik:
image: traefik:v2.2
networks:
- taknet
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "$PWD/traefik.local.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