-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
42 lines (39 loc) · 1.18 KB
/
docker-compose.postgres.yml
File metadata and controls
42 lines (39 loc) · 1.18 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
# docker-compose.yml
services:
booklogr-db:
container_name: "booklogr-db"
image: "postgres" # use latest official postgres version
ports:
- 5432:5432
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env
volumes:
- ./booklogr:/var/lib/postgresql/data # persist data even if container shuts down
booklogr-api:
container_name: "booklogr-api"
image: mozzo/booklogr:v1.9.0
depends_on:
booklogr-db:
condition: service_healthy
env_file:
- .env
ports:
- 5000:5000
booklogr-web:
container_name: "booklogr-web"
image: mozzo/booklogr-web:v1.9.0
environment:
- BL_API_ENDPOINT=http://localhost:5000/ # CHANGE THIS TO POINT TO THE EXTERNAL ADRESS THE USER CAN ACCESS
- BL_GOOGLE_ID= # CHANGE THIS TO YOUR OWN GOOGLE ID
- BL_DEMO_MODE=false
ports:
- 5150:80
volumes:
booklogr:
auth_db_vol: