-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 853 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 853 Bytes
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
version: '3'
services:
nginx:
image: nginx
ports:
- "80:80"
- "443:443"
build: ./nginx
volumes:
- ./www:/var/www
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/sites/:/etc/nginx/sites-available
- ./nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- php
php:
build: ./php
volumes:
- ./www:/var/www
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
redis:
image: redis
command: ["sh", "-c", "exec redis-server --requirepass \"${REDIS_PASSWORD}\""]
composer:
image: composer:1.9.3
environment:
- COMPOSER_CACHE_DIR=/app/var/cache/composer
volumes:
- ./www:/var/www
restart: "no"
phpunit:
image: php:7.4-cli
restart: "no"
volumes:
- ./www:/var/www
working_dir: /var/www
entrypoint: vendor/bin/phpunit