From 9745975353b1053b466759350158aaef28f927fd Mon Sep 17 00:00:00 2001 From: Vesa Jolkkonen Date: Thu, 7 Mar 2024 11:27:30 +0200 Subject: [PATCH] Add compose file for GitHub Actions --- compose.ci.yaml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 compose.ci.yaml diff --git a/compose.ci.yaml b/compose.ci.yaml new file mode 100644 index 0000000..817aa6a --- /dev/null +++ b/compose.ci.yaml @@ -0,0 +1,52 @@ +version: '2' +services: + db: + image: postgres:10.6 + restart: always + ports: + - '5432:5432' + environment: + PGDATA: /data/test + volumes: + - pg-data:/data/test + + backend: + build: './backend' + restart: always + ports: + - '7001:3001' + depends_on: + - db + environment: + - NODE_ENV=production + - PORT=3001 + - SECRET=yoursecrethere + - EMAIL_ENABLED=false + - DATABASE_URL=postgres://postgres@db:5432/dev_postgres + + frontend: + build: './frontend' + ports: + - '7000:3000' + depends_on: + - db + - backend + environment: + - PUBLIC_URL=http://localhost:7001 + + nginx: + image: nginx:1.25.4 + ports: + - '3000:80' + restart: always + volumes: + - ./frontend/e2e/nginx.e2e.conf:/etc/nginx/nginx.conf:ro + depends_on: + - backend + - frontend + + + + +volumes: + pg-data: \ No newline at end of file