slovocast/docker-compose.yml

43 lines
850 B
YAML
Raw Normal View History

2024-11-06 03:10:42 +00:00
version: '3.8'
services:
php:
build:
dockerfile: 'dev/php/Dockerfile'
volumes:
- './app:/var/www/slovocast'
depends_on:
- mariadb
links:
- mariadb
cli:
build:
context: .
dockerfile: 'dev/php/Dockerfile'
volumes:
- './app:/var/www/slovocast'
entrypoint: [ "bash", "-c" ]
profiles:
- noboot
2024-11-06 03:10:42 +00:00
nginx:
image: nginx:latest
volumes:
- './app:/var/www/slovocast'
- './dev/nginx:/etc/nginx/conf.d'
ports:
- "8080:80"
depends_on:
- php
mariadb:
image: mariadb:10.9
environment:
MARIADB_ROOT_PASSWORD: password
MARIADB_DATABASE: slovocast
MARIADB_USER: slovocast
MARIADB_PASSWORD: password
2024-11-06 03:10:42 +00:00
volumes:
- "slovocast_data:/var/lib/mysql"
ports:
- "3306:3306"
2024-11-06 03:10:42 +00:00
volumes:
slovocast_data: