Use docker compose for deployment
This commit is contained in:
+2
-9
@@ -14,13 +14,6 @@ steps:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /opt/docker/dashboard/.env:/opt/docker/dashboard/.env
|
||||
commands:
|
||||
- docker stop dashboard || true
|
||||
- docker rm dashboard || true
|
||||
- docker run -d
|
||||
--name dashboard
|
||||
--restart unless-stopped
|
||||
-p 3002:3001
|
||||
--env-file /opt/docker/dashboard/.env
|
||||
dashboard:latest
|
||||
- docker compose -f docker-compose.prod.yml down || true
|
||||
- docker compose -f docker-compose.prod.yml up -d
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
dashboard:
|
||||
image: dashboard:latest
|
||||
container_name: dashboard
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3002:3001"
|
||||
env_file:
|
||||
- /opt/docker/dashboard/.env
|
||||
Reference in New Issue
Block a user