Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
staging docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tbwrigh committed Apr 18, 2024
1 parent ee92c15 commit d2d1bf8
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions staging.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
database:
container_name: orecart-database
container_name: orecart-database-staging
image: postgres
restart: always
healthcheck:
Expand All @@ -12,13 +12,13 @@ services:
retries: 10
start_period: 10s
volumes:
- orecart-db-volume:/var/lib/postgresql/data
- orecart-db-volume-staging:/var/lib/postgresql/data
env_file:
- database.env
networks:
- prod
- staging
migration:
container_name: orecart-migration
container_name: orecart-migration-staging
build: ./backend
command: alembic upgrade head
env_file:
Expand All @@ -27,9 +27,9 @@ services:
database:
condition: service_healthy
networks:
- prod
- staging
backend:
container_name: orecart-backend
container_name: orecart-backend-staging
build: ./backend
restart: always
env_file:
Expand All @@ -44,26 +44,9 @@ services:
migration:
condition: service_completed_successfully
networks:
- prod
# frontend-admin:
# container_name: orecart-frontend-admin
# build: ./frontend-admin
# restart: always
# ports:
# - 5173:5173
# env_file:
# - frontend-admin.env
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:5173/"]
# interval: 30s
# timeout: 5s
# retries: 10
# start_period: 10s
# depends_on:
# backend:
# condition: service_healthy
- staging
networks:
prod:
staging:

volumes:
orecart-db-volume: {}
orecart-db-volume-staging: {}

0 comments on commit d2d1bf8

Please sign in to comment.