Prepare production

This commit is contained in:
Lucas
2024-05-12 14:58:27 +02:00
parent 950482dbaf
commit e06995c91b
13 changed files with 545 additions and 108 deletions

View File

@@ -0,0 +1,36 @@
services:
app:
context: .
dockerfile: Dockerfile
container_name: avsa_form_app
restart: always
volumes:
- ../app:/app
command: waitress-serve --call 'hello:create_app'
env_file:
- app.env
- db.env
networks:
- reverse-proxy
- 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:
reverse-proxy:
external: true