-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (48 loc) · 1.38 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
version: "3.3"
services:
php:
container_name: ${PROJECT_NAME}
# build: ./docker/php
image: dbjpanda/drupal-on-docker-php
volumes:
- ./code/drupal:/var/www/${PROJECT_NAME}:cached
working_dir: /var/www/${PROJECT_NAME}
networks:
- drupal
nginx:
container_name: ${PROJECT_NAME}.nginx
# build: ./docker/nginx
image: dbjpanda/drupal-on-docker-nginx
volumes:
- ./code/drupal:/var/www/${PROJECT_NAME}:cached
working_dir: /var/www/${PROJECT_NAME}
environment:
PROJECT_NAME: ${PROJECT_NAME}
DOMAIN_NAME: ${DOMAIN_NAME}
DRUPAL_VERSION: ${DRUPAL_VERSION}
MYSQL_HOSTNAME: ${PROJECT_NAME}.mariadb
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_PORT: ${MYSQL_PORT}
labels:
- "traefik.frontend.rule=Host:${DOMAIN_NAME}"
networks:
- drupal
mariadb:
container_name: ${PROJECT_NAME}.mariadb
# build: ./docker/mariadb
image: dbjpanda/drupal-on-docker-mariadb
# volumes:
# - ./code/drupal/db-dump/drupal.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
networks:
- drupal
networks:
drupal:
external:
name: ${NETWORK_NAME}