-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (36 loc) · 1.32 KB
/
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
version: '3.6'
# Requires Docker v18.02 or higher.
#####################################################################
# The DockerPHP Project #
# https://github.com/phpexpertsinc/docker-php #
# License: MIT #
# #
# Copyright © 2018-2020 PHP Experts, Inc. <[email protected]> #
# Author: Theodore R. Smith <[email protected]> #
# PGP Sig: 4BF826131C3487ACD28F2AD8EB24A91DD6125690 #
#####################################################################
services:
web:
image: phpexperts/web:nginx-php7.4-debug
volumes:
- .:/var/www:delegated
- ./docker/web:/etc/nginx/custom
###### CUSTOM EDITS START HERE ######
postgres:
image: postgres:12.3
volumes:
- /var/lib/docker/postgres/${DB_DATABASE}:/var/lib/postgresql
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
# Uncomment if you want it to be exposed system-wide.
# db:
# ports:
# - 5432:5432
redis:
image: redis:3.2
entrypoint:
- redis-server
- --requirepass ${REDIS_PASSWORD}
- --loglevel notice