chore: introduce .devcontainer

This commit is contained in:
Ali BARIN
2023-01-30 00:41:27 +01:00
parent 078ea24cd2
commit fff5306fa6
4 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
version: '3.9'
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ..:/workspace:cached
command: sleep infinity
postgres:
image: 'postgres:14.5-alpine'
environment:
- POSTGRES_DB=automatisch
- POSTGRES_USER=automatisch_user
- POSTGRES_PASSWORD=automatisch_password
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 10s
timeout: 5s
retries: 5
redis:
image: 'redis:7.0.4-alpine'
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: