-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.28 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
services:
database:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=changeme
- POSTGRES_USER=dtrack
- POSTGRES_DB=dtrack
volumes:
- ./data/postgres/:/var/lib/postgresql/data/
dtrack-apiserver:
image: dtrack/apiserver
build:
context: ./apiserver
dockerfile: apiserver.dockerfile
environment:
- ALPINE_DATABASE_MODE=external
- ALPINE_DATABASE_URL=jdbc:postgresql://database:5432/dtrack
- ALPINE_DATABASE_DRIVER=org.postgresql.Driver
- ALPINE_DATABASE_USERNAME=dtrack
- ALPINE_DATABASE_PASSWORD=changeme
- ALPINE_DATABASE_POOL_ENABLED=true
- ALPINE_DATABASE_POOL_MAX_SIZE=20
- ALPINE_DATABASE_POOL_MIN_IDLE=10
- ALPINE_DATABASE_POOL_IDLE_TIMEOUT=300000
- ALPINE_DATABASE_POOL_MAX_LIFETIME=600000
deploy:
resources:
limits:
memory: 12288m
reservations:
memory: 8192m
restart_policy:
condition: on-failure
volumes:
- './data/apiserver:/data'
restart: unless-stopped
dtrack-frontend:
image: dtrack/frontend
build:
dockerfile: frontend.dockerfile
context: ./frontend
environment:
- API_SERVICE_URL=http://dtrack-apiserver:8080
ports:
- "8080:8080"
restart: unless-stopped