-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 1.12 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
version: "3.4"
services:
auth:
image: authelia/authelia:4.37.2
ports:
- 9091:9091
volumes:
- ./test_config/authelia:/config
user: "${UID}:${GID}"
api:
build:
target: api
context: ./cppapi
dockerfile: Dockerfile
image: cppapi:latest
command: -f /api.json
ports:
- 18080:18080
#container_name: api
volumes:
- ${PWD}/test_config/api.json:/api.json
depends_on:
- db
restart: always
db:
image: postgres:12
environment:
- POSTGRES_PASSWORD_FILE=/pg_password
volumes:
- pg_data:/var/lib/postgresql/data
- ${PWD}/.github/workflows/initial_db_setup.sql:/docker-entrypoint-initdb.d/initial_db_setup.sql
- ${PWD}/test_config/pg_password:/pg_password
restart: always
schema:
image: openjdk:11
volumes:
- ${PWD}:/schema
working_dir: /schema
command: ./gradlew --no-daemon :database:flywayMigrate -PDBURL="jdbc:postgresql://db:5432/housedb" -PDBUSER=housedb_owner -PDBPASSWORD=housepassword
restart: "no"
user: "${UID}:${GID}"
volumes:
pg_data: