forked from dbergunder/docker-php-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 937 Bytes
/
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
version: '3.7'
services:
web:
build: ./docker/nginx
ports:
- "${WEB_PORT}:80"
volumes:
- ./app:/var/www/html
- ./logs/nginx:/var/log/nginx:cached
networks:
- app
depends_on:
- php
php:
environment:
COMPOSER_AUTH: ${COMPOSER_AUTH}
APP_ENV: ${APP_ENV}
APP_SECRET: ${APP_SECRET}
build:
context: ./docker/php
args:
TIMEZONE: ${TIMEZONE}
restart: on-failure
volumes:
- ./app:/var/www/html
- ./docker/php/log.conf:/usr/local/etc/php-fpm.z/zz-log.conf
- ./docker/php/php.conf:/usr/local/etc/php/conf.d/zz-conf.ini
ports:
- "9001:9001"
networks:
- app
redis:
image: redis:4-alpine
volumes:
- redis_data:/data
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
restart: always
networks:
- app
networks:
app:
volumes:
redis_data: