-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
39 lines (37 loc) · 1.09 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
version: '3.1'
services:
# DATABASES
db-dev:
container_name: db-dev
image: postgres:14-alpine
restart: always
ports:
- "5434:5432"
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
volumes:
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./database/postgres/data-dev:/var/lib/postgresql/data
# BARRAMENTO DE MENSAGERIA
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.7.5-management-alpine
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: dev
RABBITMQ_DEFAULT_PASS: dev
# SERVIÇOS
# backend:
# container_name: backend
# image: openjdk:8-alpine
# ports:
# - "8080:8080"
# command: java -Duser.timezone=GMT-03:00 -Xmx512m -Xmx256m -jar /xpto/backend.jar
# volumes:
# - ./backend/target/backend-0.0.1-SNAPSHOT.jar:/xpto/backend.jar
# links:
# - db-dev
# - rabbitmq