50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
services:
|
|
redis:
|
|
image: redis
|
|
container_name: khollise-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- '127.0.0.1:6379:6379'
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
container_name: khollise-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: khollise
|
|
POSTGRES_USER: khollise
|
|
POSTGRES_PASSWORD: securepass
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
ports:
|
|
- '127.0.0.1:5432:5432'
|
|
|
|
api:
|
|
image: git.lamy-charrier.fr/khollise/api:v1.0
|
|
container_name: khollise-api
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
volumes:
|
|
- /home/nathan/khollise/menu/menus.json:/home/node/menus.json:ro
|
|
# Link env file
|
|
env_file:
|
|
- ./prod.env
|
|
ports:
|
|
- '3333:3333'
|
|
|
|
# pgadmin:
|
|
# image: dpage/pgadmin4
|
|
# container_name: pgadmin4_container
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "8888:80"
|
|
# environment:
|
|
# PGADMIN_DEFAULT_EMAIL: nathan@lamy-charrier.fr
|
|
# PGADMIN_DEFAULT_PASSWORD: securepass
|
|
# volumes:
|
|
# - pgadmin-data:/var/lib/pgadmin
|
|
|
|
# volumes:
|
|
# pgadmin-data:
|