-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
72 lines (67 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.4'
services:
php:
build:
context: .
dockerfile: Dockerfile
target: PHP_DEV
image: php-fpm-dev
environment:
APP_KEY: ${APP_KEY}
APP_ENV: ${APP_ENV}
APP_DEBUG: ${APP_DEBUG}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
working_dir: /var/www
depends_on:
- db-testingmachine
volumes:
- ./docker/php.d/php.dev.ini:/usr/local/etc/php/php.ini
- .:/var/www
networks:
- app-network
nginx:
image: nginx:alpine
volumes:
- ./public:/var/www/public
- ./docker/conf.d:/etc/nginx/conf.d
ports:
- "80:80"
- "443:443"
depends_on:
- php
networks:
- app-network
db-testingmachine:
image: mysql:8.0
ports:
- "127.0.0.1:3309:3306"
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=db-testingmachine
- MYSQL_USER=db-testingmachine
- MYSQL_PASSWORD=pass
- TZ='America/New_York'
volumes:
- dbdata:/varl/lib/mysql
networks:
- app-network
adminer:
image: adminer
depends_on:
- db-testingmachine
ports:
- "8089:8080"
networks:
- app-network
#Volumes
volumes:
dbdata:
driver: local
#Docker Networks
networks:
app-network:
driver: bridge