self-host-csmm-support
textPage 19 of 373
50 messages on this page
Monday, June 24, 2024
User 0cec7b
Creating 7-days-to-die-server-manager_csmm-web_1 ... error
WARNING: Host is already in use by another container
WARNING: Host is already in use by another container
ERROR: for 7-days-to-die-server-manager_csmm-web_1 Cannot start service csmm-web: driver failed programming external connectivity on endpoint 7-days-to-die-server-manager_csmm-web_1 (fae41174eb5d9c37326663a2b3568450354f353a3263dd2d9676c9efd7d8540a): Error starting userland proxy: listen tcp4 0.0.0.0:1337: bind: address already in use
ERROR: for csmm-web Cannot start service csmm-web: driver failed programming external connectivity on endpoint 7-days-to-die-server-manager_csmm-web_1 (fae41174eb5d9c37326663a2b3568450354f353a3263dd2d9676c9efd7d8540a): Error starting userland proxy: listen tcp4 0.0.0.0:1337: bind: address already in use
ERROR: Encountered errors while bringing up the project.
ERROR: Encountered errors while bringing up the project.
User 23fa64
๐
User a506fe
and go go go
User a506fe
down && up -d
User a506fe
aight
User a506fe
never build myself
User a506fe
i always trust on ready built images for docker
User bddf69
ctrl+c ? :p
User 0cec7b
hmmm this may be an eye opener for both of us then lol
User a506fe
User a506fe
that i dont know, never done it
User 0cec7b
now how do i stop the docker from building lol
User a506fe
now do a pull again
User 0cec7b
ok thats done
User a506fe
image: catalysm/csmm```
User a506fe
to
User a506fe
#image: catalysm/csmm```
User a506fe
so you change this for all services from:
User a506fe
yeh lol
User 0cec7b
haha
User 0cec7b
like this?
User a506fe
# is commentUser a506fe
To use the already-built images, comment the build line and uncomment the image line
#build: . image: catalysm/csmm
User 0cec7b
i don't know how to code quote but thats my docker-compose.yml before
User 0cec7b
This is an example on how to run CSMM with Docker compose.
This is not a production ready deployment template, you must configure a web server, security, ... yourself
version: "3.7"
services:
csmm-web:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
ports:
- 1337:1337
restart: unless-stopped
entrypoint: ["npm", "run", "start:app"]
csmm-worker:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
restart: unless-stopped
entrypoint: ["npm", "run", "start:worker"]
csmm-web:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
ports:
- 1337:1337
restart: unless-stopped
entrypoint: ["npm", "run", "start:app"]
csmm-worker:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
restart: unless-stopped
entrypoint: ["npm", "run", "start:worker"]
csmm-migrations:
build: .
#image: catalysm/csmm
depends_on:
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
entrypoint: ["sh", "-c", "npm run wait-for:db && npm run db:migrate"]
build: .
#image: catalysm/csmm
depends_on:
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
entrypoint: ["sh", "-c", "npm run wait-for:db && npm run db:migrate"]
cache:
image: redis
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
image: redis
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
db:
image: mariadb
volumes:
- ./db-data:/var/lib/mysql
env_file: .env
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
image: mariadb
volumes:
- ./db-data:/var/lib/mysql
env_file: .env
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
User a506fe
#build: . image: catalysm/csmm```
User a506fe
zoom:
User a506fe
csmm-web: #build: . image: catalysm/csmm depends_on: - cache - db environment: NODE_ENV: "production" env_file: .env ports: - 127.0.0.1:1337:1337 restart: unless-stopped entrypoint: ["npm", "run", "start:app"] csmm-worker: #build: . image: catalysm/csmm depends_on: - cache - db environment: NODE_ENV: "production" env_file: .env healthcheck: disable: true restart: unless-stopped entrypoint: ["npm", "run", "start:worker"] csmm-migrations: #build: . image: catalysm/csmm depends_on: - db environment: NODE_ENV: "production" env_file: .env healthcheck: disable: true entrypoint: ["sh", "-c", "npm run wait-for:db && npm run db:migrate"] cache: image: redis volumes: - ./redis-data:/data command: ["redis-server", "--appendonly", "yes"] restart: unless-stopped db: image: mariadb volumes: - ./db-data:/var/lib/mysql env_file: .env restart: unless-stopped```
User 0cec7b
it was already like that
User a506fe
did you change the docker-compose file according to my example?
User a506fe
thats building
User a506fe
wait wait
User a506fe
as long as you do
docker-compose up -d lastUser a506fe
all good
User 0cec7b
ahh i see
User a506fe
pull and down
User a506fe
down and pull
User a506fe
the order doesnt really matter with docker
User 0cec7b
This is whats on the website shall i follow?
docker-compose pull
docker-compose down && docker-compose up -d
docker-compose down && docker-compose up -d
User a506fe
docker-compose pull && docker-compose up -d
User a506fe
docker-compose down
User a506fe
so change the docker compose file
User a506fe
you ll get latest with catalysm/csmm
User a506fe
no need for version
User 0cec7b
so where am i putting the 2.30?


