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

@ -6,10 +6,11 @@ services:
image: nginx image: nginx
depends_on: depends_on:
- php - php
expose: ports:
- 80 - 8080:80
volumes: volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro - ./nginx.conf:/etc/nginx/nginx.conf:ro
- app:/app
restart: always restart: always
php: php:
@ -18,6 +19,8 @@ services:
- db - db
expose: expose:
- 9000 - 9000
volumes:
- app:/app
restart: always restart: always
db: db:
@ -28,3 +31,6 @@ services:
MYSQL_PASSWORD: crater MYSQL_PASSWORD: crater
MYSQL_DATABASE: crater MYSQL_DATABASE: crater
MYSQL_ROOT_PASSWORD: crater MYSQL_ROOT_PASSWORD: crater
volumes:
app: