-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.21 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
version: "3.9"
services:
eccomerce-postgres:
image: postgres:15.3-alpine
hostname: ${DATABASE_HOST}
container_name: eccomerce-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:
- eccomerce-postgres:/var/lib/postgresql/data
# eccomerce-pgadmin:
# image: dpage/pgadmin4:latest
# container_name: eccomerce-pgadmin
# environment:
# - PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
# - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PW}
# ports:
# - "5050:80"
# restart: always
# eccomerce-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
volumes:
eccomerce-postgres:
# rabbitmq-lib:
# rabbitmq-log: