Files
crater/docker-compose.yml.example
Birkhoff Lee 7b697a477e Fix MariaDB config in Docker compose
by specifying a root password.
2019-12-04 11:20:50 +08:00

31 lines
461 B
Plaintext

version: '3.1'
services:
nginx:
image: nginx
depends_on:
- php
expose:
- 80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
restart: always
php:
build: .
depends_on:
- db
expose:
- 9000
restart: always
db:
image: mariadb
restart: always
environment:
MYSQL_USER: crater
MYSQL_PASSWORD: crater
MYSQL_DATABASE: crater
MYSQL_ROOT_PASSWORD: crater