-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
72 lines (66 loc) · 1.48 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
72 lines (66 loc) · 1.48 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
63
64
65
66
67
68
69
70
71
72
x-env-postgres: &env-postgres
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
services:
frontend:
depends_on:
db:
condition: service_healthy
liquibase:
condition: service_completed_successfully
backend:
condition: service_started
networks:
- application-network
backend:
depends_on:
db:
condition: service_healthy
liquibase:
condition: service_completed_successfully
environment:
API_HOST: backend
JWT_SECRET: ${JWT_SECRET}
<<: *env-postgres
networks:
- application-network
liquibase:
depends_on:
db:
condition: service_healthy
environment:
<<: *env-postgres
command: [
"liquibase",
"--url=jdbc:postgresql://db:5432/$POSTGRES_DB",
"--username=$POSTGRES_USER",
"--password=$POSTGRES_PASSWORD",
"--classpath=changelog",
"--changeLogFile=studio-lite.changelog-root.xml",
"update"
]
networks:
- application-network
db:
environment:
<<: *env-postgres
volumes:
- "${DB_VOL:-db_vol}:/var/lib/postgresql/data"
networks:
- application-network
volumes:
backend_vol:
db_vol:
db_external_vol:
driver: local
driver_opts:
device: ${DB_EXTERNAL_VOL_PATH}
o: bind
type: none
networks:
application-network:
name: app-net
external: true