a mini social media app for small communities
1volumes:
2 beep-data:
3
4services:
5 beep-database:
6 image: postgres:17
7 container_name: beep-database
8 ports:
9 - 127.0.0.1:5432:5432
10 environment:
11 - POSTGRES_DB=beep
12 - POSTGRES_USER=beep
13 - POSTGRES_PASSWORD=beep # CHANGE THIS
14 volumes:
15 - beep-data:/var/lib/postgresql/data
16 restart: on-failure:3
17 healthcheck:
18 test: ["CMD", "pg_isready", "-d", "postgresql://localhost:5432", "-U", "beep"]
19 interval: 30s
20 timeout: 10s
21 retries: 5
22
23 beep:
24 build: .
25 container_name: beep
26 depends_on:
27 beep-database:
28 condition: service_healthy
29 restart: true
30 ports:
31 - 8008:8008
32 volumes:
33 - type: bind
34 source: ${PWD}/config.real.maple
35 target: /beep/config.real.maple
36 restart: on-failure:3