-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (44 loc) · 1.18 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
version: "3.9"
services:
sms-postgres:
image: postgres:15.3-alpine
hostname: ${DATABASE_HOST}
container_name: sms-postgres
command: -p ${DATABASE_PORT} # Change the default port
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
# - PGPORT=${DATABASE_PORT}
expose:
- "${DATABASE_PORT}"
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
restart: always
volumes:
- airplane-postgres:/var/lib/postgresql/data
sms-pgadmin:
image: dpage/pgadmin4:latest
container_name: sms-pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PW}
ports:
- "5050:80"
restart: always
sms-message-broker:
image: rabbitmq:3-management-alpine
container_name: message-broker
ports:
- 5672:5672 # for sender and consumer connections
- 15672:15672 # for serve RabbitMQ GUI
volumes:
- rabbitmq-lib:/var/lib/rabbitmq
- rabbitmq-log:/var/log/rabbitmq
restart: always
# networks:
# - dev-network
volumes:
airplane-postgres:
rabbitmq-lib:
rabbitmq-log: