2023-03-24 20:02:50 +01:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
#####
|
|
|
|
|
## Required services for listory
|
|
|
|
|
#####
|
|
|
|
|
|
|
|
|
|
db:
|
2023-09-16 22:17:07 +02:00
|
|
|
image: postgres:16.0
|
2023-03-24 20:02:50 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_PASSWORD: listory
|
|
|
|
|
POSTGRES_USER: listory
|
|
|
|
|
POSTGRES_DB: listory
|
|
|
|
|
volumes:
|
|
|
|
|
- db:/var/lib/postgresql/data
|
|
|
|
|
networks:
|
|
|
|
|
- db
|
|
|
|
|
|
|
|
|
|
api:
|
2023-09-18 19:22:43 +00:00
|
|
|
image: apricote/listory:1.28.2
|
2023-03-24 20:02:50 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
DB_HOST: db
|
|
|
|
|
DB_USERNAME: listory
|
|
|
|
|
DB_PASSWORD: listory
|
|
|
|
|
DB_DATABASE: listory
|
|
|
|
|
JWT_SECRET: listory
|
|
|
|
|
APP_URL: "http://localhost:3000"
|
|
|
|
|
|
|
|
|
|
# You can add any configuration from the README.md here or in .env,
|
|
|
|
|
# make sure to restart the container if you made any changes.
|
|
|
|
|
env_file: .env
|
|
|
|
|
ports:
|
2023-09-16 13:02:19 +02:00
|
|
|
- "3000:3000" # API
|
2023-03-24 20:02:50 +01:00
|
|
|
networks:
|
|
|
|
|
- web
|
|
|
|
|
- db
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
db: {}
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
db: {}
|
|
|
|
|
web: {}
|