web-base/docker-compose.yml

29 lines
543 B
YAML
Raw Normal View History

2021-04-07 19:43:22 +02:00
version: "3.9"
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- .:/application:rw
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:ro
links:
- db
- php
db:
image: mariadb:latest
ports:
- '3306:3306'
environment:
- "MYSQL_ROOT_PASSWORD=webbasedb"
- "MYSQL_DATABASE=webbase"
php:
volumes:
- .:/application:rw
- ./docker/php/php.ini:/usr/local/etc/php/php.ini:ro
build:
context: './docker/php/'
links:
- db