1
Fork 0
mirror of https://github.com/Steffo99/distributed-arcade.git synced 2024-11-21 15:44:26 +00:00

Setup devcontainer

This commit is contained in:
Steffo 2022-11-11 09:05:25 +00:00 committed by GitHub
parent 0148630122
commit 1e99d6673e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

3
.devcontainer/.env Normal file
View file

@ -0,0 +1,3 @@
REDIS_CONN_STRING="redis://db:6379/"
AXUM_HOST_STRING="0.0.0.0:30000"
RUST_LOG="distributed_arcade"

View file

@ -0,0 +1,25 @@
{
"name": "Distributed Arcade",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"customizations": {
"vscode": {
"settings": {
"lldb.executable": "/usr/bin/lldb",
"files.watcherExclude": {
"**/target/**": true
},
"rust-analyzer.checkOnSave.command": "clippy"
},
"extensions": [
"vadimcn.vscode-lldb",
"mutantdino.resourcemonitor",
"rust-lang.rust-analyzer"
]
}
},
"forwardPorts": [30000]
}

View file

@ -0,0 +1,22 @@
version: '3.8'
volumes:
postgres-data:
services:
app:
image: "mcr.microsoft.com/devcontainers/rust"
command: sleep infinity
security_opt:
- "seccomp:unconfined"
cap_add:
- "SYS_PTRACE"
volumes:
- "../..:/workspaces:cached"
env_file: ".env"
db:
image: "redis"
restart: unless-stopped