How can i change the domain name in the container?

I have completed the build using docker-compose, the docker-compose file is as follows:

version: '3.1'
services:

  ghost:
    image: ghost:2.20.1
    restart: always
    ports:
      - 80:2368
    environment:
      # see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
      database__client: mysql
      database__connection__host: db
      database__connection__user: root
      database__connection__password: example
      database__connection__database: ghost
      url: http://blog.kdyzm.cn
    depends_on:
      - db 
  db: 
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

Now i can access by blog.kdyzm.cn , but if my domain name changes, how can I modify it?such as blog.kdyzm.com or https://blog.kdyzm.cn

I have find the solution,fixed ghost data volume and recreate container from ghost docker image ,all problems have been solved

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.