Files
recipe-app/compose.yml
T
2026-04-09 09:14:39 +02:00

51 lines
1.1 KiB
YAML

services:
recipe-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: recipe-frontend
restart: unless-stopped
# env_file:
# - .env
networks:
- proxy
- recipe-internal
recipe-api:
image: hashicorp/http-echo:1.0
container_name: recipe-api
command: ["-listen=:8080", "-text=recipe-api is alive"]
restart: unless-stopped
networks:
- proxy
- recipe-internal
recipe-db:
image: mariadb:11
container_name: recipe-db
restart: unless-stopped
# env_file:
# - .env
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
volumes:
- recipe_db_data:/var/lib/mysql
- ./db/init:/docker-entrypoint-initdb.d
command: >
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
networks:
- recipe-internal
volumes:
recipe_db_data:
networks:
proxy:
external: true
recipe-internal:
driver: bridge