-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
71 lines (65 loc) · 1.78 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
64
65
66
67
68
69
70
71
version: "2"
services:
php:
container_name: ${PROJECT_NAME}
image: dbjpanda/drupal-on-docker-php
volumes:
- ./code:/var/www/${PROJECT_NAME}:cached
working_dir: /var/www/${PROJECT_NAME}
networks:
- drupal
restart: always
nginx:
container_name: ${PROJECT_NAME}.nginx
image: dbjpanda/drupal-on-docker-nginx
volumes:
- ./code:/var/www/${PROJECT_NAME}:cached
- ./node:/var/www/node-scraper:cached
working_dir: /var/www/${PROJECT_NAME}
environment:
PROJECT_NAME: ${PROJECT_NAME}
DOMAIN_NAME: ${DOMAIN_NAME}
DRUPAL_VERSION: ${DRUPAL_VERSION}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASS: ${MYSQL_PASS}
MYSQL_HOST_NAME: ${PROJECT_NAME}.mariadb
MYSQL_PORT: ${MYSQL_PORT}
labels:
- "traefik.frontend.rule=Host:${DOMAIN_NAME}"
networks:
- drupal
restart: always
node:
container_name: ${PROJECT_NAME}.node
build: ./docker/nodejs/
image: node-scraper
volumes:
- ./node:/var/www/node-scraper:cached
working_dir: /var/www/node-scraper
environment:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
PROCESS_TYPE: ${PROCESS_TYPE}
NIGHTMARE_SHOW: ${NIGHTMARE_SHOW}
NIGHTMARE_IMAGES: ${NIGHTMARE_IMAGES}
labels:
- "traefik.frontend.rule=Host:node.localhost"
networks:
- drupal
restart: always
mariadb:
container_name: ${PROJECT_NAME}.mariadb
image: dbjpanda/drupal-on-docker-mariadb
volumes:
- ./code/db-dump/drupal.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
networks:
- drupal
restart: always
networks:
drupal:
external:
name: ${NETWORK_NAME}