forked from The-Pragmatic-Squad/Finance-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
31 lines (28 loc) · 794 Bytes
/
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
version: '3.8' # Version of docker-compose
# Services/Containers to be run
services:
# app:
# container_name: finance_system
# image: finance_system
# build: ./ # Path to Dockerfile
# ports:
# - "9000:9000" # Port exposed to host:port exposed in container
# depends_on:
# - PostgreSQL_DB
# - rabbitmq
#
rabbitmq:
image: 'rabbitmq:latest'
environment:
- 'RABBITMQ_DEFAULT_USER=guest'
- 'RABBITMQ_DEFAULT_PASS=guest'
ports:
- '5672'
PostgreSQL_DB:
image: postgres:alpine # PostgreSQL image, alpine version (lightweight)
ports:
- "6000:5432" # Port exposed to host:port exposed in container
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: finance_system