mirror of
https://github.com/Steffo99/distributed-arcade.git
synced 2024-11-21 07:34:25 +00:00
Setup devcontainer
This commit is contained in:
parent
0148630122
commit
1e99d6673e
3 changed files with 50 additions and 0 deletions
3
.devcontainer/.env
Normal file
3
.devcontainer/.env
Normal file
|
@ -0,0 +1,3 @@
|
|||
REDIS_CONN_STRING="redis://db:6379/"
|
||||
AXUM_HOST_STRING="0.0.0.0:30000"
|
||||
RUST_LOG="distributed_arcade"
|
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal 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]
|
||||
}
|
22
.devcontainer/docker-compose.yml
Normal file
22
.devcontainer/docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue