This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
72 lines (70 loc) · 1.69 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
www:
image: nginx
volumes:
- ./:/application/www
- ./environment/dev/nginx/:/etc/nginx/conf.d/
ports:
- ${EXTERNAL_WWW_PORT:-80}:80
depends_on:
- php
- database
networks:
- meetup-dev
php:
build:
context: environment/dev/php
args:
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
ports:
- ${EXTERNAL_PHP_PORT:-9000}:9000
container_name: meetup-php
working_dir: /application
user: ${CURRENT_UID:-1000}
volumes:
- ./tests/manual/public:/application/public
- .:/application
- ./environment/dev/php/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- meetup-dev
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
redis:
image: 'redis:6'
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
ports:
- ${EXTERNAL_REDIS_PORT:-6379}:6379
volumes:
- ./storage/redis:/data
networks:
- meetup-dev
node:
image: "node:14"
tty: true
ports:
- ${EXTERNAL_NODE_PORT:-3000}:3000
working_dir: /src
volumes:
- ./:/src
networks:
- meetup-dev
database:
image: postgres:14
container_name: meetup-db
environment:
- PGPASSWORD=${DOCKER_DEV_DB_ROOT_PASSWORD}
- POSTGRES_DB=${DOCKER_DEV_DB_DATABASE}
- POSTGRES_USER=${DOCKER_DEV_DB_USERNAME}
- POSTGRES_PASSWORD=${DOCKER_DEV_DB_PASSWORD}
ports:
- ${DOCKER_DEV_DB_EXTERNAL_PORT:-5432}:5432
volumes:
- ./meetup-pgsql-data:/var/lib/postgresql/data
networks:
- meetup-dev
restart: unless-stopped
networks:
meetup-dev:
driver: bridge