-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (57 loc) · 1.21 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
version: '3.7'
services:
nginx:
container_name: nginx-${PROJECT_DIR_NAME}
build: docker/nginx
ports:
- "80:80"
depends_on:
- php
- db
networks:
- php
- db
volumes:
- ./logs/nginx:/var/log/nginx
- ./public:/var/www/symfony/public
php:
container_name: php-fpm-${PROJECT_DIR_NAME}
build: docker/php8.2-fpm
ports:
- "3000:3000"
volumes:
- .:/var/www/symfony
depends_on:
- db
networks:
- db
- php
db:
container_name: db-${PROJECT_DIR_NAME}
build: docker/postgres
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- db
ports:
- "5432:5432"
rabbitmq:
container_name: rabbit-mq-${PROJECT_DIR_NAME}
build: docker/rabbit-mq
hostname: rabbit-mq
restart: always
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbit log_levels [{connection,error},{default,error}] disk_free_limit 2147483648
volumes:
- ./rabbitmq:/var/lib/rabbitmq/mnesia
networks:
- php
networks:
db:
php: