From f62cc42aa7e96322a48682b9002fe059ba7d981b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20P=C3=A9rez=20Arcas?= Date: Mon, 30 Mar 2026 08:26:16 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20z1/docker-compose.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- z1/docker-compose.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 z1/docker-compose.yaml diff --git a/z1/docker-compose.yaml b/z1/docker-compose.yaml new file mode 100644 index 0000000..a6e39d3 --- /dev/null +++ b/z1/docker-compose.yaml @@ -0,0 +1,51 @@ +services: + frontend: + image: nginx:latest + container_name: zkt_frontend + ports: + - "8080:80" + volumes: + - ./frontend/index.html:/usr/share/nginx/html/index.html:ro + - ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro + depends_on: + - backend + networks: + - zkt_net + restart: on-failure + + backend: + build: ./backend + image: zkt-notes-backend + container_name: zkt_backend + environment: + DB_HOST: db + DB_NAME: notesdb + DB_USER: notesuser + DB_PASSWORD: notessecret + DB_PORT: "5432" + depends_on: + - db + networks: + - zkt_net + restart: on-failure + + db: + image: postgres:16 + container_name: zkt_db + environment: + POSTGRES_DB: notesdb + POSTGRES_USER: notesuser + POSTGRES_PASSWORD: notessecret + volumes: + - zkt_db_data:/var/lib/postgresql/data + networks: + - zkt_net + restart: on-failure + +networks: + zkt_net: + external: true + +volumes: + zkt_db_data: + external: true \ No newline at end of file