-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yaml
88 lines (83 loc) · 1.79 KB
/
docker-compose.yaml
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
78
79
80
81
82
83
84
85
86
87
88
services:
api:
image: swissgeol-viewer-app/api:local
build:
context: ./api
dockerfile: DockerfileDev
init: true
ports:
- "8480:3000"
volumes:
- ./api:/app
- api.cargo:/usr/local/cargo
- api.target:/app/target
depends_on:
- db
- minio
env_file:
- ./api/.env
- .env
ui:
image: swissgeol-viewer-app/ui:local
build:
context: ./ui
dockerfile: DockerfileDev
init: true
ports:
- "8000:8000"
depends_on:
- api
- abbreviator
volumes:
- ./:/app
- ui.node_modules:/app/ui/node_modules
tmpfs:
- /app/ui/dist
minio:
image: minio/minio:latest
command: server /data --console-address :9001
init: true
volumes:
- minio:/data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_BROWSER: "on"
MINIO_SITE_REGION: ${S3_AWS_REGION}
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}
env_file:
- ./api/.env
- .env
abbreviator:
image: ghcr.io/swisstopo/swissgeol-viewer-app-abbreviator:main
platform: linux/amd64
ports:
- "8001:8080"
environment:
ID_LENGTH: 5
DATABASE_URL: "sqlite:///storage/local.db"
HOST_WHITELIST: "localhost"
db:
image: camptocamp/postgres:14-postgis-3
platform: linux/amd64
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${PGDATABASE}
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PGUSER} -d ${PGDATABASE}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
minio:
db:
api.cargo:
api.target:
ui.node_modules: