-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
92 lines (92 loc) · 2.4 KB
/
docker-compose.yaml
File metadata and controls
92 lines (92 loc) · 2.4 KB
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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
redis:
image: redis
restart: unless-stopped
ports:
- "${FORWARD_REDIS_PORT:-6379}:6379"
networks:
- cakephp4-queue-net
nginx:
image: nginx:latest
ports:
- "${NGINX_PORT:-80}:80"
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/var/www/html'
- ./docker/config/nginx/site.conf:/etc/nginx/conf.d/default.conf
# so we can cache our github tokens
networks:
- cakephp4-queue-net
links:
- php
- mailhog
depends_on:
- mysql
restart: unless-stopped
php:
# image: php:fpm
environment:
# XDEBUG_MODE: "debug,develop"
XDEBUG_MODE: "off"
restart: unless-stopped
build:
context: ./docker/config/php/
dockerfile: Dockerfile
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- cakephp4-queue-net
volumes:
- .:/var/www/html
- ./docker/config/php/php.ini:/usr/local/etc/php/php.ini
- '~/.composer/docker-cache/:/home/phpdev/.composer:cached'
- '~/.config/composer/:/home/phpdev/.config/composer:cached'
- vscode-extensions:/home/phpdev/.vscode-server/extensions
links:
- mysql
mysql:
restart: unless-stopped
image: 'mysql/mysql-server:latest'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: '%'
volumes:
- 'cakephp4-queue:/var/lib/mysql'
# delegated'
# /etc/mysql/conf.d for x64
# for arm image
# - './docker/config/mysql/my.cnf:/etc/my.cnf'
networks:
- cakephp4-queue-net
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}" ]
retries: 3
timeout: 5s
mailhog:
restart: unless-stopped
build:
context: ./docker/config/mailhog/
# Dockerfile from https://github.com/mailhog/MailHog
dockerfile: Dockerfile
# image: 'mailhog/mailhog:latest'
ports:
- '${FORWARD_MAILHOG_PORT:-1025}:1025'
- '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
networks:
- cakephp4-queue-net
networks:
cakephp4-queue-net:
driver: bridge
volumes:
cakephp4-queue:
driver: local
vscode-extensions:
driver: local