mirror of
https://gitplac.si/aljaxus/upn-qr.git
synced 2025-12-16 19:50:57 +00:00
Fixed docker-compose
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
version: 3.8
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
image: node:14
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
command: ["yarn", "run", "dev"]
|
||||
environment:
|
||||
ENV: development
|
||||
NODE_ENV: development
|
||||
volumes:
|
||||
- ./src:/var/src
|
||||
- /var/src/node_modules
|
||||
ports:
|
||||
- 8080:80
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-sSG", "http://localhost/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
app:
|
||||
image: node:14
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
command: ["yarn", "run", "dev"]
|
||||
environment:
|
||||
ENV: development
|
||||
NODE_ENV: development
|
||||
volumes:
|
||||
- ./src:/var/src
|
||||
- /var/src/node_modules
|
||||
ports:
|
||||
- 8080:80
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-sSG", "http://localhost/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
|
||||
Reference in New Issue
Block a user