-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.41 KB
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
services:
db:
image: postgres:17
container_name: trackstudio-db
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASS}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U trackstudio -d trackstudio"]
interval: 5s
timeout: 5s
retries: 20
migrator:
build:
context: .
dockerfile: Dockerfile.migrator
container_name: trackstudio-migrator
depends_on:
db:
condition: service_healthy
working_dir: /workspace
command:
[
"--changelog-file=changelog-master-${DB_LANGUAGE:-en}.xml",
"--url=${DB_URL}",
"--username=${DB_USER}",
"--password=${DB_PASS}",
"update"
]
restart: "no"
trackstudio:
build:
context: .
dockerfile: Dockerfile
container_name: trackstudio
depends_on:
- migrator
environment:
CATALINA_OPTS: -Dfile.encoding=UTF-8 -Dhibernate.connection.url=${DB_URL} -Dhibernate.connection.username=${DB_USER} -Dhibernate.connection.password=${DB_PASS}
volumes:
- tsindex:/data/trackstudio/index
- tsupload:/data/trackstudio/upload
ports:
- "8080:8080"
restart: always
volumes:
pgdata:
driver: local
tsindex:
driver: local
tsupload:
driver: local