-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (97 loc) · 2.8 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# For more information: https://laravel.com/docs/sail
version: '3'
services:
website:
image: nginx:stable-alpine
ports:
- '${APP_PORT:-8080}:80'
working_dir: /usr/share/nginx/html
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
- '.:/usr/share/nginx/html'
depends_on:
- agiletech
agiletech_composer:
build: .
image: agiletech/php:7
working_dir: /usr/share/nginx/html
# ports:
# - '${APP_PORT:-80}:80'
volumes:
- '.:/usr/share/nginx/html'
- ./docker/fpm-pool.conf:/etc/php7/php-fpm.d/www.conf
- ./docker/php.ini:/etc/php7/conf.d/custom.ini
entrypoint: composer install
depends_on:
- mysql
agiletech:
build: .
image: agiletech/php:7
working_dir: /usr/share/nginx/html
# ports:
# - '${APP_PORT:-80}:80'
volumes:
- '.:/usr/share/nginx/html'
- ./docker/fpm-pool.conf:/etc/php8/php-fpm.d/www.conf
- ./docker/php.ini:/etc/php7/conf.d/custom.ini
tty: true
depends_on:
- mysql
# laravel.test:
# build:
# context: ./vendor/laravel/sail/runtimes/8.0
# dockerfile: Dockerfile
# args:
# WWWGROUP: '${WWWGROUP}'
# image: sail-8.0/app
# ports:
# - '${APP_PORT:-80}:80'
# environment:
# WWWUSER: '${WWWUSER}'
# LARAVEL_SAIL: 1
# volumes:
# - '.:/var/www/html'
# networks:
# - sail
# depends_on:
# - mysql
# - redis
mysql:
image: 'mysql:5.7'
ports:
- '${FORWARD_DB_PORT:-30306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- database:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
# redis:
# image: 'redis:alpine'
# ports:
# - '${FORWARD_REDIS_PORT:-6379}:6379'
# volumes:
# - 'sailredis:/data'
# networks:
# - sail
# healthcheck:
# test: ["CMD", "redis-cli", "ping"]
# mailhog:
# image: 'mailhog/mailhog:latest'
# ports:
# - '${FORWARD_MAILHOG_PORT:-1025}:1025'
# - '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
# networks:
# - sail
# networks:
# sail:
# driver: bridge
volumes:
database:
driver: local
# sailredis:
# driver: local