-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.29 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
version: '3.4'
services:
nginx:
build: ./docker/nginx
user: ${DOCKER_UID}
restart: always
ports:
- "${NGINX_PORT}:8080"
depends_on:
- php
volumes:
- ./public/:/var/www/symfony/public:cached
- ./docker/logs/nginx:/var/log/nginx:cached
- ./coverage:/var/www/symfony/coverage:cached
php:
user: ${DOCKER_UID}
restart: always
build:
context: ./docker
dockerfile: php-fpm/Dockerfile
target: php_fpm_dev
volumes:
- ./:/var/www/symfony:cached
queue:
user: ${DOCKER_UID}
restart: always
build:
context: ./docker
dockerfile: php-fpm/Dockerfile
target: php_queue
volumes:
- ./:/var/www/symfony:cached
db:
image: postgres:${POSTGRES_VERSION:-14}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
volumes:
- postgres-data:/var/lib/postgresql/data:delegated
rabbitmq:
restart: unless-stopped
image: rabbitmq:3.8-management
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- ${RABBITMQ_PORT}:${RABBITMQ_PORT}
volumes:
postgres-data: { }