From 7b01f9925f5fcb6cf9f6f17f018c52520e0420a1 Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 10 Dec 2024 10:53:26 +0000 Subject: [PATCH] Server transfer --- production/app.env | 4 ++++ production/docker-compose.yml | 23 ++++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 production/app.env diff --git a/production/app.env b/production/app.env new file mode 100644 index 0000000..1454c45 --- /dev/null +++ b/production/app.env @@ -0,0 +1,4 @@ +VIRTUAL_HOST=avsa.lucasroyer.fr +VIRTUAL_PORT=8080 +LETSENCRYPT_HOST=avsa.lucasroyer.fr +LETSENCRYPT_EMAIL=litvak@outlook.fr diff --git a/production/docker-compose.yml b/production/docker-compose.yml index e62bfd0..03b2765 100644 --- a/production/docker-compose.yml +++ b/production/docker-compose.yml @@ -1,23 +1,24 @@ services: app: - context: . - dockerfile: Dockerfile + build: + context: . + dockerfile: Dockerfile - container_name: avsa_form_app - restart: always + container_name: avsa_form_app + restart: always - volumes: + volumes: - ../app:/app - command: waitress-serve --call 'hello:create_app' + command: waitress-serve --call 'hello:create_app' - env_file: + env_file: - app.env - db.env - networks: - - reverse-proxy - - avsa_form + networks: + - reverse-proxy + - avsa_form db: image: postgres:13.1 @@ -33,4 +34,4 @@ services: networks: avsa_form: reverse-proxy: - external: true \ No newline at end of file + external: true