26 lines
547 B
YAML
Executable File
26 lines
547 B
YAML
Executable File
version: '3.8'
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: satu-peta-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "4000:4000"
|
|
env_file:
|
|
- .env.local
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:4000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 40s
|
|
retries: 3
|
|
networks:
|
|
- satupeta-network
|
|
|
|
networks:
|
|
satupeta-network:
|
|
driver: bridge
|