feat: docker networks
This commit is contained in:
+9
-2
@@ -6,11 +6,18 @@ services:
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
expose:
|
||||
- "3000"
|
||||
networks:
|
||||
- nginx
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:3000/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
networks:
|
||||
nginx:
|
||||
external: true
|
||||
name: nginx
|
||||
|
||||
Reference in New Issue
Block a user