-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.19 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
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
environment:
- APP_ENV=prod
ports:
- "${APP_PORT}:${APP_PORT}"
depends_on:
- database
volumes:
- ./:/var/www/app
web:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- "8080:80"
depends_on:
- app
volumes:
- ./:/var/www/app
database:
image: postgres:16
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_INITDB_ARGS: --auth-host=trust
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "${POSTGRES_PORT}:5432"
container_name: balancer_database
restart: always
volumes:
- db-data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:4-management-alpine
ports:
- "${RABBIT_MQ_PORT}:5672"
- "15673:15672"
environment:
- RABBITMQ_DEFAULT_USER=${RABBIT_MQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBIT_MQ_PASSWORD}
volumes:
- rabbitmq_data:/var/lib/rabbitmq
volumes:
db-data:
rabbitmq_data: