From 2b2beb232e9e3dabcd75c8d2627a68f498d4a3b2 Mon Sep 17 00:00:00 2001 From: Greg Frasco Date: Thu, 6 Apr 2023 08:48:48 -0700 Subject: [PATCH] feat: update deployment (#30) * feat: update deployment * feat: add prod deployment config --- deployment/docker-compose-prod.yml | 29 +++++++++++++++++++++++++++ deployment/docker-compose-staging.yml | 7 ++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 deployment/docker-compose-prod.yml diff --git a/deployment/docker-compose-prod.yml b/deployment/docker-compose-prod.yml new file mode 100644 index 00000000..99195f4f --- /dev/null +++ b/deployment/docker-compose-prod.yml @@ -0,0 +1,29 @@ +version: '3' +services: + time-tracker-frontend: + image: hicsail/sail-time-tracker-frontend:latest + container_name: time-tracker-frontend + restart: always + ports: + - 4004:80 + env_file: + - ../stack.env + time-tracker-backend: + image: hicsail/sail-time-tracker-backend:latest + container_name: time-tracker-backend + restart: always + ports: + - 4003:3000 + env_file: + - ../stack.env + time-tracker-postgres: + image: postgres:13 + restart: always + ports: + - 5433:5432 + volumes: + - time-tracker-staging:/var/lib/postgresql/data + env_file: + - ../stack.env +volumes: + time-tracker-staging: ~ \ No newline at end of file diff --git a/deployment/docker-compose-staging.yml b/deployment/docker-compose-staging.yml index 94732cb6..5273dea8 100644 --- a/deployment/docker-compose-staging.yml +++ b/deployment/docker-compose-staging.yml @@ -1,18 +1,19 @@ version: '3' services: time-tracker-frontend: - image: hicsail/sail-time-tracker-frontend:unstable + image: hicsail/sail-time-tracker-frontend:main + container_name: time-tracker-frontend restart: always ports: - 4004:80 env_file: - ../stack.env time-tracker-backend: - image: hicsail/sail-time-tracker-backend:unstable + image: hicsail/sail-time-tracker-backend:main + container_name: time-tracker-backend restart: always ports: - 4003:3000 - - 4005:5555 env_file: - ../stack.env time-tracker-postgres: