Skip to content

Commit 54e1997

Browse files
committed
Fix docker-compose.yaml
1 parent d60d995 commit 54e1997

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docker-compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: '3'
22

3+
networks:
4+
app-network:
5+
driver: bridge
6+
37
volumes:
48
cache:
59
driver: local
@@ -13,6 +17,8 @@ services:
1317
build:
1418
context: .
1519
container_name: tasklist
20+
networks:
21+
- app-network
1622
depends_on:
1723
- db
1824
- minio
@@ -25,6 +31,8 @@ services:
2531
db:
2632
image: postgres:15.1-alpine
2733
container_name: postgres
34+
networks:
35+
- app-network
2836
environment:
2937
- POSTGRES_USER=${POSTGRES_USERNAME}
3038
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
@@ -37,6 +45,8 @@ services:
3745
image: redis:7.2-rc-alpine
3846
restart: always
3947
container_name: redis
48+
networks:
49+
- app-network
4050
ports:
4151
- '6379:6379'
4252
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
@@ -46,6 +56,8 @@ services:
4656
minio:
4757
image: minio/minio:latest
4858
container_name: minio
59+
networks:
60+
- app-network
4961
environment:
5062
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY}
5163
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}

0 commit comments

Comments
 (0)