-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
40 lines (39 loc) · 1.24 KB
/
docker-compose.yaml
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
version: '3.8'
services:
database:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=root
php:
build:
context: config/docker/php-fpm
args:
HOST_UID: 1000
volumes:
- ./:/user/customize:delegated
- $HOME/.bashrc:/user/.bashrc:delegated
- $HOME/.composer/cache:/user/.composer/cache:delegated
- $HOME/.gitignore:/user/.gitignore:delegated
- $HOME/.ssh:/user/.ssh:delegated
- $HOME/.vimrc:/user/.vimrc:delegated
working_dir: /user/customize
links:
- database
environment:
- PATH=./bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- COLUMNS=190
- LINES=42
- APP_ENV=dev
- APP_DEBUG=1
- APP_DATABASE_URL=mysql://root:root@database/customize
- APP_TEST_DATABASE_URL=mysql://root:root@database/customize_test
- APP_MAILER_URL=null://127.0.0.1
- APP_SECRET=ThisIsNotReallySecretButOK
nginx:
build: config/docker/nginx
ports:
- "8080:80"
links:
- php
volumes:
- ./:/user/customize