-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.35 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
version: '3'
services:
mariadb:
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD-root}
MARIADB_USER: ${MARIADB_USER-foo}
MARIADB_PASSWORD: ${MARIADB_PASSWORD-bar}
MARIADB_DATABASE: ${MARIADB_DATABASE-baz}
image: mariadb:${MARIADB_VERSION-11.5.2}
ports:
- '3306:3306'
volumes:
- './docker/mariadb/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro'
- 'mariadb:/var/lib/mysql'
php:
build:
context: docker/php
args:
COMPOSER_VERSION: ${COMPOSER_VERSION-2.8}
PHP_VERSION: ${PHP_VERSION-8.3.13}
DEBUG: ${DEBUG-1}
environment:
COMPOSER_CACHE_DIR: '/composer/cache'
depends_on:
- mailhog
- mariadb
ports:
- '9000'
volumes:
- '.:/srv/app'
- '${COMPOSER_CACHE_DIR-~/.cache/composer}:/composer/cache'
user: ${UID-1000}:${GID-1000}
web:
environment:
NGINX_HOST: ${NGINX_HOST-localhost}
NGINX_ALIASES: ${NGINX_ALIASES-}
depends_on:
- php
image: nginx:${NGINX_VERSION-1.27.2}-alpine
ports:
- '80:80'
- '443:443'
volumes:
- '.:/srv/app'
- './docker/nginx/vhost.common.d:/etc/nginx/vhost.common.d'
- './docker/nginx/templates:/etc/nginx/templates'
mailhog:
image: mailhog/mailhog:latest
ports:
- '1025:1025'
- '8025:8025'
volumes:
mariadb: