Rename docker-compose.yml.example -> docker-compose.yaml.example

This commit is contained in:
Birkhoff Lee
2019-12-04 14:54:28 +08:00
parent 7fe9a4c2a2
commit 14d71fedb3

View File

@ -0,0 +1,36 @@
version: '3.1'
services:
nginx:
image: nginx
depends_on:
- php
ports:
- 8080:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- app:/app
restart: always
php:
build: .
depends_on:
- db
expose:
- 9000
volumes:
- app:/app
restart: always
db:
image: mariadb
restart: always
environment:
MYSQL_USER: crater
MYSQL_PASSWORD: crater
MYSQL_DATABASE: crater
MYSQL_ROOT_PASSWORD: crater
volumes:
app: