Skip to content

Commit

Permalink
chore: adjust docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyoptimist committed May 31, 2024
1 parent 97e0730 commit fde5d6b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deployments/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- DB_SYNC=false
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
ports:
- 8080:8080
<<: &default_logging
Expand All @@ -26,6 +28,7 @@ services:
restart: unless-stopped
depends_on:
- postgresql
- redis

postgresql:
image: postgres:16
Expand All @@ -41,5 +44,17 @@ services:
<<: *default_logging
restart: unless-stopped

redis:
image: redis:7
container_name: redis
command: "redis-server --loglevel warning"
volumes:
- redis_data:/data/
ports:
- "6379:6379"
<<: *default_logging
restart: unless-stopped

volumes:
postgres_data:
redis_data:

0 comments on commit fde5d6b

Please sign in to comment.