-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (94 loc) · 2.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (94 loc) · 2.54 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
93
94
95
96
97
98
99
100
101
102
volumes:
database:
driver: "local"
services:
app:
container_name: 'ivplflmnt_app'
build:
context: ./docker-resources/php-fpm
restart: unless-stopped
tty: true
volumes:
- .:/var/www/html
depends_on:
- db
networks:
- laravel
web:
container_name: 'ivplflmnt_web'
build:
context: ./docker-resources/apache
restart: unless-stopped
tty: true
ports:
- "${APP_PORT:-8080}:80"
volumes:
- .:/usr/local/apache2/htdocs
depends_on:
- app
networks:
- laravel
# One-off command runner for tests, artisan, and composer — not started
# by default (profile "tools"). Examples:
# docker compose run --rm cli composer install
# docker compose run --rm cli php artisan migrate --seed
# docker compose run --rm cli vendor/bin/phpunit --exclude-group failing,troubleshooting
cli:
container_name: 'ivplflmnt_cli'
build:
context: ./docker-resources/php-cli
profiles:
- tools
tty: true
environment:
APP_ENV: "${APP_ENV:-testing}"
volumes:
- .:/var/www/html
networks:
- laravel
db:
container_name: 'ivplflmnt_db'
image: mariadb
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "yes"
MARIADB_DATABASE: "${DB_DATABASE}"
TZ: "Europe/London"
networks:
- laravel
mailcatcher:
container_name: 'ivplflmnt_mailcatcher'
image: sj26/mailcatcher
restart: unless-stopped
tty: true
ports:
- "25:1025"
- "1080:1080"
networks:
- laravel
# phpmyadmin:
# container_name: 'ivplflmnt_phpmyadmin'
# image: phpmyadmin/phpmyadmin
# restart: unless-stopped
# ports:
# - "8081:80"
# environment:
# PMA_HOST: db
# PMA_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
# PMA_USER: "root"
# PMA_PASSWORD: "root"
# MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
# MYSQL_PASSWORD: "${DB_PASSWORD}"
# MAX_EXECUTION_TIME: 600
# MEMORY_LIMIT: 256M
# UPLOAD_LIMIT: 2G
# depends_on:
# - db
# networks:
# - laravel
networks:
laravel:
driver: bridge