Skip to content

Commit

Permalink
feat: edit compose prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacelocust authored Sep 18, 2024
1 parent e70c10b commit b9fdae5
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ services:
image: spacelocust/fd-api:latest
restart: unless-stopped
container_name: fd-api
environment:
DB_USER: "{DB_USER:?err}"
DB_PASSWORD: "{DB_PASSWORD:?err}"
DB_NAME: "{DB_NAME:?err}"
DB_HOST: "{DB_HOST:?err}"
DB_URL: "{DB_URL:?err}"
JWT_SECRET: "{JWT_SECRET:?err}"
API_SECRET: "{API_SECRET:?err}"
API_ENV: "{API_ENV:?err}"
API_PORT: "{API_PORT:?err}"
API_DOMAIN: "{API_DOMAIN:?err}"
API_BASE_URL: "{API_BASE_URL:?err}"
API_CORS_ORIGIN: "{API_CORS_ORIGIN:?err}"
GOOGLE_APPLICATION_CREDENTIALS: "{GOOGLE_APPLICATION_CREDENTIALS:?err}"
STEAM_KEY: "{STEAM_KEY:?err}"
HELLHUB_API_URL: "{HELLHUB_API_URL:?err}"
HELLDIVERS_API_URL: "{HELLDIVERS_API_URL:?err}"
stdin_open: true
tty: true
volumes:
Expand All @@ -16,11 +33,16 @@ services:
timeout: 20s
retries: 5
start_period: 60s
networks:
webserver:
aliases:
- fd-api
database:

migrations:
image: spacelocust/fd-migrations:latest
restart: "no"
container_name: fd-migrations
environment:
DATABASE_URL: "${DB_URL:?err}"
depends_on:
postgres:
condition: service_healthy

postgres:
image: postgres:16
Expand All @@ -38,14 +60,3 @@ services:
timeout: 20s
retries: 5
start_period: 60s
networks:
- database

volumes:
public:

networks:
webserver:
external: true
rabbitmq:
database:

0 comments on commit b9fdae5

Please sign in to comment.