-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 984 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
app:
image: "mnemosyne/app"
restart: always
build:
context: ./
dockerfile: Dockerfile
ports:
- "8000:8000"
- "50051:50051"
depends_on:
db:
condition: service_healthy
environment:
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- POSTGRES_DB_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_SSL=disable
- UPLOAD_FOLDER=upload
volumes:
- upload:/app/upload
db:
image: postgres:14.5
restart: always
# volumes:
# - ./.database/postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST=localhost
- POSTGRES_DB_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5436:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
upload: