forked from aleherse/codebreaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (37 loc) · 1011 Bytes
/
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
version: '3.4'
services:
app:
build: docker/php-fpm
volumes:
- .:/app
env_file:
- .env.dist
- .env
environment:
- DATABASE_HOST=db
- DATABASE_NAME=${DB_NAME}
- DATABASE_USER=${DB_USER}
- DATABASE_PASSWORD=${DB_PASSWORD}
- APP_SECRET=${APP_SECRET}
- XDEBUG_REMOTE_HOST=${XDEBUG_IP}
- XDEBUG_REMOTE_PORT=${XDEBUG_PORT}
server:
build: docker/nginx
ports:
- "8080:80"
volumes:
- .:/app
db:
image: mysql:5.6
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
env_file:
- .env.dist
- .env
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}