Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Oct 7, 2023
1 parent 2bb8cdf commit 0c598ee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ services:
db:
image: postgres:16.0-alpine3.18
restart: always
volumes:
- db:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
env_file:
- ./.env
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
cache:
image: redis:7.2.1-alpine3.18
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
user: root
volumes:
- cache:/data
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
ports:
- '6379:6379'
pgadmin:
image: dpage/pgadmin4
restart: always
Expand Down

0 comments on commit 0c598ee

Please sign in to comment.