-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 985 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 985 Bytes
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
version: '3.9'
services:
backend:
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://user:password@postgres/database
depends_on:
- "liquibase"
links:
- "liquibase:liquibase"
build: ./backend
frontend:
build: ./frontend
ports:
- '3000:3000'
environment:
REACT_APP_BACKEND_URL_PORT: "localhost:8080"
links:
- "backend"
postgres:
image: postgres:alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: database
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d database"]
interval: 5s
timeout: 5s
retries: 5
liquibase:
image: liquibase/liquibase
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend/resources/:/liquibase/changelog/
command: --url=jdbc:postgresql://postgres:5432/database?user=user&password=password --changeLogFile=changelog.xml update