-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.linux.yml
88 lines (83 loc) · 2.1 KB
/
docker-compose.linux.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3'
services:
web:
build:
context: .
dockerfile: docker/Dockerfile
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
image: uofa/s2i-shepherd-drupal-dev
# Chrome webdriver requires this - used for tests.
privileged: true
hostname: ${PROJECT}
ports:
- "8000:8080"
environment:
DATABASE_HOST: db
DATABASE_USER: user
DATABASE_PASSWORD: password
HASH_SALT: random-hash
MEMCACHE_ENABLED: 1
MEMCACHE_HOST: memcached
PHP_IDE_CONFIG: serverName=${PROJECT}.${DOMAIN}
REDIS_ENABLED: 0
REDIS_HOST: redis
# REDIS_PASSWORD: testing
SHEPHERD_INSTALL_PROFILE: shepherd
SHEPHERD_SECRET_PATH: /code/private
SITE_TITLE: Shepherd
SITE_MAIL: site@example.com
SITE_ADMIN_EMAIL: admin@example.com
SITE_ADMIN_USERNAME: admin
SITE_ADMIN_PASSWORD: password
VIRTUAL_HOST: ${PROJECT}.${DOMAIN}
# Do not define this as '/' or apache2 will give strange behaviour, to test locally,
# change to the web directory and create a symlink to the subpath name eg ln -s . subpath
# WEB_PATH: /subpath
XDEBUG_CONFIG: "remote_host=172.17.0.1"
volumes:
- .:/code
- ./shared:/shared
- ${XDG_RUNTIME_DIR}/keyring:/ssh
networks:
- default
db:
image: mariadb
ports:
- 3306:3306
environment:
MYSQL_DATABASE: drupal
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: super-secret-password
networks:
- default
mail:
image: mailhog/mailhog
ports:
- 8025:80
environment:
VIRTUAL_HOST: mail.${PROJECT}.${DOMAIN}
networks:
- default
redis:
image: redis:alpine
command: |
redis-server
--maxmemory 512mb
--maxmemory-policy allkeys-lru
--save ""
# --requirepass password
networks:
- default
memcached:
image: memcached:alpine
networks:
- default
selenium:
image: selenium/standalone-chrome:3.141.59-oxygen
volumes:
- /dev/shm:/dev/shm
networks:
- default