Secure docker containers to local network

This commit is contained in:
Ajay Ramachandran 2021-03-07 00:37:47 -05:00
parent 8729796e87
commit eacd9cb6e8

View file

@ -8,7 +8,7 @@ services:
volumes: volumes:
- database-data:/var/lib/postgresql/data - database-data:/var/lib/postgresql/data
ports: ports:
- 5432:5432 - 127.0.0.1:5432:5432
redis: redis:
container_name: redis container_name: redis
image: redis image: redis
@ -16,7 +16,7 @@ services:
volumes: volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf - ./redis/redis.conf:/usr/local/etc/redis/redis.conf
ports: ports:
- 32773:6379 - 127.0.0.1:32773:6379
volumes: volumes:
database-data: database-data: