diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-23 21:34:48 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-23 21:34:48 +0300 |
commit | 747097af03e422c72c2fe0065637e59a1685d219 (patch) | |
tree | 6b965e4c5d4ee812d104c3537866f2e3b5e27376 /docker-compose.yaml |
nearly completed, forgot to make a repo
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..0c4c746 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,31 @@ +version: "3.4" +services: + scale-api: + image: "node:latest" + container_name: scale-api + user: "node" + working_dir: /home/node/app + environment: + - NODE_ENV=production + volumes: + - ./:/home/node/app + ports: + - "6969:6969" + depends_on: + - db + command: "npm run dev" + db: + image: postgres:latest + container_name: sclale-postgres + environment: + - POSTGRES_USER=scale + - POSTGRES_PASSWORD=secret + volumes: + - scale-db:/var/lib/postgresql/data + healthcheck: + test: ["CMD", "pg_isready", "-U", "scale"] + interval: 10s + start_period: 30s + +volumes: + scale-db: |