-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (65 loc) · 1.77 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
# Docker-compose for development
version: '3.9'
services:
php:
build:
context: _docker/php/dev
restart: unless-stopped
working_dir: /app
volumes:
- ./_docker/php/dev/base.ini:/usr/local/etc/php/conf.d/base.ini
- ./:/app
environment:
POSTGRES_HOST: pgsql
POSTGRES_DB: file
POSTGRES_USER: file
POSTGRES_PASSWORD: file
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
AUTH_URL: http://host.docker.internal/file/auth
php_worker:
build:
context: _docker/php/dev
restart: unless-stopped
working_dir: /app
volumes:
- ./_docker/php/dev/base.ini:/usr/local/etc/php/conf.d/base.ini
- ./:/app
environment:
POSTGRES_HOST: pgsql
POSTGRES_DB: file
POSTGRES_USER: file
POSTGRES_PASSWORD: file
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
STATUS_CHANGE_WEBHOOK: http://host.docker.internal/file/status-change
# todo: This script runs in an infinite loop, so the code does not detect changes. This makes development difficult.
command: "php amqp_consumer.php"
nginx:
image: nginx:1.21.6-alpine
restart: unless-stopped
volumes:
- ./_docker/nginx/dev/conf.d:/etc/nginx/conf.d
- ./_docker/data/nginx/log:/var/log/nginx
depends_on:
- php
ports:
- "9080:80"
pgsql:
image: postgres:14.5-bullseye
restart: unless-stopped
environment:
POSTGRES_DB: file
POSTGRES_USER: file
POSTGRES_PASSWORD: file
volumes:
- php_file_service_database:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.10.7-alpine
restart: unless-stopped
volumes:
php_file_service_database: