-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.osx.yml
91 lines (84 loc) · 2.23 KB
/
docker-compose.osx.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
89
90
91
#
# Note that development on OSX is not currently updated/supported.
#
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
# You will notice that we are forwarding port which do not belong to PHP.
# We have to declare them here because these "sidecar" services are sharing
# THIS containers network stack.
ports:
- "8000:8080"
- "3306:3306"
- "8025:8025"
- "9990:9990"
- "11211:11211"
environment:
HASH_SALT: random-hash
MEMCACHE_ENABLED: 0
PHP_IDE_CONFIG: serverName=localhost
PUBLIC_DIR: /shared/public
REDIS_ENABLED: 1
# REDIS_PASSWORD: testing
SHEPHERD_INSTALL_PROFILE: shepherd
SHEPHERD_SECRET_PATH: /code/private
SHEPHERD_TOKEN: super-secret-token
SHEPHERD_URL: http://shepherd.test
SITE_TITLE: Shepherd
SITE_MAIL: [email protected]
SITE_ADMIN_EMAIL: [email protected]
SITE_ADMIN_USERNAME: admin
SITE_ADMIN_PASSWORD: password
VIRTUAL_HOST: 127.0.0.1:8000
XDEBUG_CONFIG: "remote_host=host.docker.internal"
volumes:
- nfsmount:/code
- ./shared:/shared
- $HOME/.ssh/id_rsa:/root/.ssh/id_rsa
xdebug:
image: nickschuch/d4m-tcp-forwarder
network_mode: host
environment:
- PORT=9000
db:
image: mariadb
network_mode: service:web
environment:
MYSQL_DATABASE: drupal
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: super-secret-password
mail:
image: mailhog/mailhog
network_mode: service:web
redis:
image: redis:alpine
command: |
redis-server
--maxmemory 512mb
--maxmemory-policy allkeys-lru
--save ""
# --requirepass password
network_mode: service:web
memcached:
image: memcached:alpine
network_mode: service:web
selenium:
image: selenium/standalone-chrome:3.141.59-oxygen
network_mode: service:web
volumes:
- /dev/shm:/dev/shm
volumes:
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":${PWD}"