-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
40 lines (36 loc) · 856 Bytes
/
compose.yml
File metadata and controls
40 lines (36 loc) · 856 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
services:
database:
image: postgres:17-alpine
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
healthcheck:
test: ["CMD-SHELL","pg_isready -U ${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- pgdata:/var/lib/postgresql/data
fileshare:
build:
context: ./fileshare
dockerfile: Dockerfile
depends_on:
- server
admin:
build:
context: ./admin
dockerfile: Dockerfile
depends_on:
- server
server:
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- database
# TODO: add a elasticsearch node or similar for logging events
# NOTE: not using elasticsearch node becuz under the hood it uses ubuntu and is very heavy
volumes:
pgdata: