39 lines
910 B
YAML
39 lines
910 B
YAML
services:
|
|
app:
|
|
image: app:latest
|
|
build:
|
|
context: docker
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ./:/var/www/html
|
|
- ./docker/nginx/default.conf:/etc/nginx/sites-enabled/
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.calendi.entrypoints=web"
|
|
- "traefik.http.routers.calendi.rule=Host(`calendi.strolap.com`)"
|
|
- "traefik.http.routers.calendi.tls=true"
|
|
- "traefik.http.routers.calendi.certresolver=strolap"
|
|
- "traefik.http.services.calendi.loadbalancer.server.port=80"
|
|
networks:
|
|
- proxy
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./var/postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- proxy
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
postgres_data:
|