zkt24/z1/docker-compose.yml
2024-04-16 13:16:55 +02:00

28 lines
509 B
YAML

version: '3.8'
services:
php:
build:
context: ./php/
container_name: programwithgio-app
restart: always
volumes:
- ./:/var/www/html
nginx:
build:
context: ./nginx/
container_name: programwithgio-nginx
restart: always
volumes:
- ./:/var/www/html
depends_on:
- php
ports:
- 8080:80
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./data:/var/lib/mysql