Initialize loco app
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user