-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.49 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
version: '3.9'
services:
api:
hostname: api
container_name: hcib-api
build:
context: .
dockerfile: Dockerfile
networks:
- dev-default
environment:
- PHP_VERSION="8.2"
volumes:
- ./stocks-api:/api
nginx:
image: nginx:1.25-alpine3.18
container_name: hcib-nginx
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./stocks-api:/api
depends_on:
- api
networks:
- dev-default
ports:
- '8181:8181'
db:
image: postgres:16.2-alpine3.18
container_name: hcib-db
environment:
POSTGRES_DB: 'stocks_api'
POSTGRES_PASSWORD: 'hcib'
POSTGRES_USER: 'hcib'
PGDATA: /var/lib/postgresql/data/db-files/
volumes:
- db-data:/var/lib/postgresql/data:rw
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker/postgres/postgres.conf:/etc/postgresql/postgresql.conf
networks:
- dev-default
ports:
- '5439:5432'
rmq:
image: rabbitmq:3.13.1-management-alpine
container_name: hcib-rmq
environment:
RABBITMQ_DEFAULT_PASS: 'hcib'
RABBITMQ_DEFAULT_USER: 'hcib'
RABBITMQ_DEFAULT_VHOST: 'hcib_poc'
volumes:
- ./docker/rmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
networks:
- dev-default
ports:
- '15679:15672'
volumes:
db-data:
name: hcbi-db-volume
networks:
dev-default:
name: dev-network