self-host-csmm-support

textPage 19 of 373
50 messages on this page
Monday, June 24, 2024
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b

Creating 7-days-to-die-server-manager_csmm-web_1 ... error
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.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
๐Ÿ‘‹
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
and go go go
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
down && up -d
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
aight
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ok so now its doing this lovely stuff
image.png

image.png

PNG โ€ข 11.0 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
never build myself
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
i always trust on ready built images for docker
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
ctrl+c ? :p
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
hmmm this may be an eye opener for both of us then lol
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
that i dont know, never done it
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
No content
image.png

image.png

PNG โ€ข 6.4 KB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
now how do i stop the docker from building lol
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
now do a pull again
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ok thats done
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
    image: catalysm/csmm```
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
to
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
    #image: catalysm/csmm```
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
so you change this for all services from:
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
yeh lol
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
haha
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b

like this?

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
# is comment
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
To use the already-built images, comment the build line and uncomment the image line
#build: .
image: catalysm/csmm
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
i don't know how to code quote but thats my docker-compose.yml before
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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-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
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
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
    #build: .
    image: catalysm/csmm```
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
zoom:
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
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```
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
it was already like that
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
did you change the docker-compose file according to my example?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
thats building
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
wait wait
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
all this lonely stuff now
image.png

image.png

PNG โ€ข 55.2 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
as long as you do
 docker-compose up -d
last
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
all good
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ahh i see
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
pull and down
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
down and pull
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
the order doesnt really matter with docker
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
This is whats on the website shall i follow?
docker-compose pull
docker-compose down && docker-compose up -d
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
docker-compose pull && docker-compose up -d
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
docker-compose down
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
so change the docker compose file
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
you ll get latest with catalysm/csmm
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
no need for version
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
so where am i putting the 2.30?