website/docker-compose.yml
2024-05-24 09:05:42 -04:00

43 lines
909 B
YAML

services:
web:
build: ./build/nginx
restart: unless-stopped
ports:
- '80:8080'
volumes:
- ./src:/opt/website:ro
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- php
php:
build: ./build/php
restart: unless-stopped
env_file:
- ./conf/postgres/database.env
volumes:
- ./src:/opt/website:ro
- ./data/status:/status:ro
depends_on:
- db
db:
build: ./build/postgres
restart: unless-stopped
env_file:
- ./conf/postgres/database.env
environment:
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- './data/schemas:/var/lib/postgresql/data'
- ./src/db:/db:ro
init:
build: ./build/init
env_file:
- ./conf/postgres/database.env
volumes:
- ./src/db:/db:ro
- ./data/status:/status
depends_on:
- db