Files
taxes/docker-compose.yml
deploy 62cad948b7
Build and Deploy Docker / build (push) Failing after 24s
Build and Deploy Docker / deploy (push) Has been skipped
add secrets; add action to build and deploy
2026-07-09 12:30:21 +02:00

47 lines
1.2 KiB
YAML

version: '3'
services:
database:
image: postgres:${POSTGRES_VERSION:-13}-alpine
ports: [ "5432" ]
environment:
POSTGRES_DB: ${POSTGRES_DB:-taxes}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-xEPOzHeAj5rHZo0Y}
POSTGRES_USER: ${POSTGRES_USER:-taxes_user}
volumes:
- ./storage/database:/var/lib/postgresql/data:rw
networks:
- internal
www:
image: git.rhost.ovh/ryjek/taxes:latest
restart: on-failure
build:
context: .
dockerfile: services/www/Dockerfile
networks:
- frontend
- internal
volumes:
- ./project:/var/www/html
# depends_on:
# - database
labels:
traefik.enable: 'true'
traefik.http.routers.taxes.entrypoints: web
traefik.http.routers.taxes.rule: Host(`taxes.docker`)
traefik.http.services.taxes.loadbalancer.server.port: 80
traefik.http.routers.taxes.service: taxes
# wait_for_it:
# build:
# context: .
# dockerfile: services/wait_for_it/Dockerfile
# networks:
# - internal
# depends_on:
# - database
# command: sh -c "/wait -t 30 database:5432 -- echo 123;"
networks:
internal:
internal: true
frontend:
external: true