Initial commit

This commit is contained in:
Lucas
2024-05-11 17:25:51 +02:00
commit 950482dbaf
11 changed files with 467 additions and 0 deletions

7
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.11.8-alpine
# Dev depedencies
RUN apk add --no-cache git
# Prod depedencies
RUN pip install flask psycopg2-binary sqlalchemy

View File

@@ -0,0 +1,19 @@
// For format details, see https://aka.ms/devcontainer.json
{
"name": "avsa-form devenv",
"dockerComposeFile": "docker-compose.yml",
"service": "devenv",
"workspaceFolder": "/home/developer/workspace",
"remoteEnv": {
"XDG_RUNTIME_DIR": "/tmp/runtime-developer"
},
"customizations": {
"vscode": {
"extensions": [
"shardulm94.trailing-spaces"
]
}
}
}

View File

@@ -0,0 +1,29 @@
services:
devenv:
build:
context: .
dockerfile: Dockerfile
container_name: avsa_form-dev
restart: always
volumes:
- ..:/home/developer/workspace
command: sleep infinity
networks:
- avsa_form
db:
image: postgres:13.1
container_name: avsa_form_db
restart: always
volumes:
- ../postgresql:/var/lib/postgresql/data
env_file:
- ../db.env
networks:
- avsa_form
networks:
avsa_form: