Skip to content

Commit

Permalink
chore: remove postgres from compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
asnunes committed Jan 15, 2024
1 parent 1b5d616 commit 5f40e5c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,9 @@ services:
- DATABASE__PASSWORD=${POSTGRES_PASSWORD}
- DATABASE__NAME=${POSTGRES_DB}
restart: unless-stopped
depends_on:
db:
condition: service_healthy
volumes:
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro

db:
image: postgres:13-alpine
container_name: db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
network_mode: host
volumes:
- ~/data/docker/postgres/db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5

migrate:
image: tweteroocsharp-migrate
container_name: migrate
Expand All @@ -44,11 +24,6 @@ services:
- DATABASE__USERNAME=${POSTGRES_USER}
- DATABASE__PASSWORD=${POSTGRES_PASSWORD}
- DATABASE__NAME=${POSTGRES_DB}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5

nginx:
image: nginx:1.25.3-alpine
Expand Down

0 comments on commit 5f40e5c

Please sign in to comment.