Initialize loco app
Some checks failed
CI / Check Style (push) Successful in 18s
CI / Run Tests (push) Failing after 49s
CI / Run Clippy (push) Successful in 53s

This commit is contained in:
Dylan Knutson
2024-11-30 12:41:45 -08:00
parent 9fe2bd20c7
commit acb33d4730
84 changed files with 8194 additions and 8 deletions

View File

@@ -10,3 +10,7 @@ DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOSTNAM
PGADMIN_DEFAULT_EMAIL=admin@example.com
PGADMIN_DEFAULT_PASSWORD=password
PGADMIN_LISTEN_PORT=8080
# no password required
PGADMIN_CONFIG_SERVER_MODE=False
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False

View File

@@ -8,16 +8,28 @@
"features": {
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
"ghcr.io/nikobockerman/devcontainer-features/fish-persistent-data:2": {}
"ghcr.io/nikobockerman/devcontainer-features/fish-persistent-data:2": {},
"ghcr.io/devcontainers-extra/features/act:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true,
"azureDnsAutoDetection": true,
"installDockerBuildx": true,
"installDockerComposeSwitch": true,
"version": "latest",
"dockerDashComposeVersion": "latest"
}
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
80
8080, // pgadmin
5150 // loco app
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "cargo install diesel_cli",
"postCreateCommand": "cargo install loco && cargo install sea-orm-cli",
// Configure tool-specific properties.
"customizations": {
"vscode": {

View File

@@ -1,8 +1,8 @@
version: '3.8'
volumes:
devcontainer-scraper-rs-postgres-data:
devcontainer-scraper-rs-cargo-cache:
devcontainer-thoth-postgres-data:
devcontainer-thoth-cargo-cache:
services:
app:
@@ -15,7 +15,7 @@ services:
volumes:
- ../..:/workspaces:cached
- devcontainer-scraper-rs-cargo-cache:/usr/local/cargo
- devcontainer-thoth-cargo-cache:/usr/local/cargo
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
@@ -30,7 +30,7 @@ services:
image: pgvector/pgvector:pg17
restart: unless-stopped
volumes:
- devcontainer-scraper-rs-postgres-data:/var/lib/postgresql/data
- devcontainer-thoth-postgres-data:/var/lib/postgresql/data
env_file:
# Ensure that the variables in .env match the same variables in devcontainer.json
- .env