blob: 6b6e4ed352ef86bff6aa0a92b3b79a4fb5e6b79c (
plain)
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
|
services:
postgres:
image: postgres:16-alpine
container_name: rahanna-postgres
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- default
volumes:
- postgres_data:/var/lib/postgresql/data
rahanna:
image: ghcr.io/boozec/rahanna-api:latest
container_name: rahanna-api
networks:
- default
environment:
- DATABASE_URL=${DATABASE_URL}
- JWT_TOKEN=${JWT_TOKEN}
- API_ADDRESS=:8080
- DEBUG=0
depends_on:
- postgres
ports:
- "8080:8080"
restart: unless-stopped
networks:
default:
volumes:
postgres_data:
|