-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.46 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
43
44
45
46
47
48
version: '3.9'
services:
app:
build:
context: .docker/dev/php
dockerfile: Dockerfile
args:
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
working_dir: /application
environment:
- DOCKER=1
- PHP_IDE_CONFIG=serverName=plan.local
volumes:
- ./.docker/dev/ngnix/nginx.conf:/etc/nginx/nginx.conf:ro
- ./.docker/dev/php/php.ini:/usr/local/etc/php/conf.d/zzz-overrides.ini:ro
- ./.docker/dev/php/php-fpm.conf:/usr/local/etc/php-fpm.d/zzz-overrides.conf:ro
- ./.docker/dev/php/supervisord.conf:/etc/supervisor/custom-supervisord.conf:ro
- .:/application
ports:
- ${EXTERNAL_APP_PORT:-80}:80
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- plan
db:
image: postgres:16
ports:
- ${FORWARD_DB_PORT:-5432}:5432
environment:
PGPASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- /var/lib/postgresql/data
networks:
- plan
redis:
image: redis:7.0.11-alpine3.17
ports:
- ${DOCKER_REDIS_HOST_PORT:-6379}:6379
networks:
- plan
restart: unless-stopped
# Networks
networks:
plan:
driver: bridge