portfolio/docker-compose.yml

44 lines
907 B
YAML
Raw Normal View History

2024-02-13 18:45:08 +01:00
version: '3.8'
services:
2025-01-04 13:10:14 +01:00
# database:
# container_name: darius-portfolio-database
# image: postgres:alpine
# restart: always
# env_file:
# - .env
# ports:
# - "5432:5432"
# healthcheck:
# test: [ "CMD-SHELL", "pg_isready -U postgres" ]
# interval: 10s
# timeout: 5s
# retries: 5
2024-05-15 16:04:50 +02:00
2024-05-16 17:36:44 +02:00
portfolio:
container_name: darius-portfolio-server
2024-05-16 17:36:44 +02:00
build: .
2025-01-04 13:10:14 +01:00
env_file:
- .env
2024-02-13 18:45:08 +01:00
ports:
2024-05-16 18:55:03 +02:00
- "4000:4000"
2024-05-16 18:42:31 +02:00
- "4001:4001"
2024-05-15 16:04:50 +02:00
restart: unless-stopped
2024-05-16 17:36:44 +02:00
image: docker.dariusklein.nl/portfolio:latest
2025-01-04 13:10:14 +01:00
# depends_on:
# database:
# condition: service_healthy
2024-09-12 15:34:45 +02:00
volumes:
- ./backup:/web/assets/json
2024-05-15 16:04:50 +02:00
2024-05-16 18:12:02 +02:00
docs:
container_name: darius-portfolio-docs
2024-05-16 18:42:31 +02:00
build:
context: .
dockerfile: ./common/docs/Dockerfile
2024-05-16 18:12:02 +02:00
ports:
2024-05-16 18:55:03 +02:00
- "4002:80"
2024-05-16 18:12:02 +02:00
restart: unless-stopped
2024-05-16 18:42:31 +02:00
image: docker.dariusklein.nl/portfolio-docs:latest
2024-05-16 18:12:02 +02:00