Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docker environment variable #1494

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .infra/docker-compose.preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ services:
- VIRTUAL_PORT=5000
- LETSENCRYPT_HOST={{pr_number}}.labonnealternance-preview.apprentissage.beta.gouv.fr
- [email protected]
env_file: .env_server
volumes:
- server:/data
- ./.env_server:/app/server/.env
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5000/api/healthcheck"]
interval: 10s
Expand All @@ -49,9 +49,9 @@ services:
image: "ghcr.io/mission-apprentissage/mna_lba_server:0.0.0-{{pr_number}}"
container_name: lba_{{pr_number}}_jobs_processor
command: ["yarn", "cli", "job_processor:start"]
env_file: .env_server
volumes:
- server:/data
- ./.env_server:/app/server/.env

volumes:
server:
Expand Down
4 changes: 2 additions & 2 deletions .infra/docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ services:
limits:
memory: 2g
replicas: 2
env_file: .env_server
stop_grace_period: 2m
volumes:
- /opt/app/data/server:/data
- /opt/app/.env_server:/app/server/.env
logging:
driver: "fluentd"
options:
Expand All @@ -57,10 +57,10 @@ services:
limits:
memory: 2g
command: ["yarn", "cli", "job_processor:start"]
env_file: .env_server
stop_grace_period: 5m
volumes:
- /opt/app/data/server:/data
- /opt/app/.env_server:/app/server/.env
logging:
driver: "fluentd"
options:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig((options) => {
const migrationFiles = fs.readdirSync("./src/migrations")

const entry: Record<string, string> = {
index: isDev ? "src/dev.ts" : "src/main.ts",
index: "src/index.ts",
}

for (const file of migrationFiles) {
Expand Down
Loading