Skip to content

Commit

Permalink
fix: production docker
Browse files Browse the repository at this point in the history
kayprogrammer committed Jan 19, 2025
1 parent 30e3c0d commit 4c811a9
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
services:
db:
restart: always
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- shared_network

redis:
image: redis
ports:
@@ -35,12 +16,10 @@ services:
ports:
- "8000:8000"
environment:
- POSTGRES_SERVER=db
- REDIS_URL=redis:6379
env_file:
- .env
depends_on:
- db
- redis
command: air ./main.go -b 0.0.0.0
healthcheck:
@@ -62,8 +41,6 @@ services:
- .env
ports:
- "5050:80"
depends_on:
- db
networks:
- shared_network

0 comments on commit 4c811a9

Please sign in to comment.