forked from DirectoryLister/DirectoryLister
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (35 loc) · 989 Bytes
/
docker-compose.yaml
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
version: '3.4'
services:
app:
container_name: directory-lister-app
build: .
image: phlak/directory-lister:dev
depends_on:
- memcached
- redis
ports:
- ${APP_PORT:-80}:80
extra_hosts:
- host.docker.internal:${DOCKER_HOST_IP:-172.17.0.1}
user: ${HOST_USER_ID:-0}:${HOST_GROUP_ID:-0}
volumes:
- ./:/var/www/html
- ./.docker/php/config/php.ini:/usr/local/etc/php/php.ini
- ./.docker/apache2/config/000-default.conf:/etc/apache2/sites-available/000-default.conf
memcached:
container_name: directory-lister-memcached
ports:
- ${MEMCACHED_PORT:-11211}:11211
image: memcached:1.6
redis:
container_name: directory-lister-redis
ports:
- ${REDIS_PORT:-6379}:6379
image: redis:6.0
npm:
container_name: directory-lister-npm
image: phlak/directory-lister:dev
volumes:
- ./:/var/www/html
user: ${HOST_USER_ID:-0}:${HOST_GROUP_ID:-0}
command: npm run watch