-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·42 lines (41 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3'
services:
nginx:
image: nginx
ports:
- "80:80"
links:
- php
volumes:
- "./:/var/www"
- "./docker/config/nginx/vhost/sf4_vhost:/etc/nginx/conf.d/030-sf4.conf:ro"
php:
env_file:
- .env.local
build:
context: ./docker
links:
- db
volumes:
- "./docker/config/php/php.ini:/usr/local/etc/php/conf.d/030-custom.ini:ro"
- "./:/var/www"
ports:
- "9000:9000"
environment:
- APP_ENV=${APP_ENV}
- APP_DEBUG=1
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=${DATABASE_URL}
working_dir: "/var/www"
db:
image: mysql:8.0
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- "./.data/db:/var/lib/mysql"
environment:
- "MYSQL_ROOT_PASSWORD=123"
- "MYSQL_USER=root"
- "MYSQL_PASSWORD=123"
- "MYSQL_DATABASE=app"