Fixed docker-compose

This commit is contained in:
Aljaž S
2022-08-31 17:24:39 +02:00
parent 9dc1d07f38
commit c0db7dabb0

View File

@@ -1,22 +1,23 @@
version: 3.8 version: "3.8"
services: services:
image: node:14 app:
build: image: node:14
context: ./ build:
dockerfile: Dockerfile context: ./
command: ["yarn", "run", "dev"] dockerfile: Dockerfile
environment: command: ["yarn", "run", "dev"]
ENV: development environment:
NODE_ENV: development ENV: development
volumes: NODE_ENV: development
- ./src:/var/src volumes:
- /var/src/node_modules - ./src:/var/src
ports: - /var/src/node_modules
- 8080:80 ports:
healthcheck: - 8080:80
test: ["CMD", "curl", "-sSG", "http://localhost/healthcheck"] healthcheck:
interval: 30s test: ["CMD", "curl", "-sSG", "http://localhost/healthcheck"]
timeout: 10s interval: 30s
retries: 3 timeout: 10s
start_period: 15s retries: 3
start_period: 15s