forked from adlnet/perls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.54 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
version: "3.9"
services:
mariadb:
image: wodby/mariadb:$MARIADB_TAG
container_name: "${PROJECT_NAME}_mariadb"
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_DATABASE: $DB_NAME
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
ports:
- "${DB_HOST_PORT}:3306"
# volumes:
# - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
# - /path/to/mariadb/data/on/host:/var/lib/mysql # Use bind mount
php:
build:
context: .
target: ${target}
args:
version: dev
container_name: "${PROJECT_NAME}_php"
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
DB_HOST: $DB_HOST
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
DB_NAME: $DB_NAME
DB_DRIVER: $DB_DRIVER
REDIS_HOST: "${PROJECT_NAME}_redis_dev"
ENABLE_XDEBUG: "false"
SMTP_HOST: $SMTP_HOST
SMTP_PORT: $SMTP_PORT
SMTP_FROM: $SMTP_FROM
ports:
- "8000:80"
volumes:
- ./:/var/www/html:cached
- ./.ssh:/root/.ssh
mailhog:
image: mailhog/mailhog
container_name: "${PROJECT_NAME}_mailhog"
ports:
- "8025:8025"
redis:
container_name: "${PROJECT_NAME}_redis"
image: wodby/redis:$REDIS_TAG
solr:
image: wodby/solr:$SOLR_TAG
container_name: "${PROJECT_NAME}_solr"
environment:
SOLR_DEFAULT_CONFIG_SET: $SOLR_CONFIG_SET
SOLR_HEAP: 1024m
networks:
default:
driver: bridge
name: "${PROJECT_NAME}_network"