web-base/docker-compose.yml

34 lines
639 B
YAML
Raw Normal View History

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