Added db and memcached exposed ports in docker-compose.yml

master
Meliurwen 3 years ago
parent ed662df834
commit 2a30c2c928
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 4
      docker-compose.yml

@ -5,6 +5,8 @@ services:
image: ${DB_IMG:-mariadb}:${DB_TAG:-latest} image: ${DB_IMG:-mariadb}:${DB_TAG:-latest}
container_name: ${DB_CONTAINER_NAME:-seafile-db} container_name: ${DB_CONTAINER_NAME:-seafile-db}
restart: ${DB_RESTART:-unless-stopped} restart: ${DB_RESTART:-unless-stopped}
expose:
- "3306"
environment: environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWD:-changemeplease} - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWD:-changemeplease}
- MYSQL_LOG_CONSOLE=true - MYSQL_LOG_CONSOLE=true
@ -17,6 +19,8 @@ services:
image: ${MC_IMG:-memcached}:${MC_TAG:-alpine} image: ${MC_IMG:-memcached}:${MC_TAG:-alpine}
container_name: ${MC_CONTAINER_NAME:-seafile-memcached} container_name: ${MC_CONTAINER_NAME:-seafile-memcached}
restart: ${MC_RESTART:-unless-stopped} restart: ${MC_RESTART:-unless-stopped}
expose:
- "11211"
entrypoint: memcached -m 256 entrypoint: memcached -m 256
networks: networks:
- seafile-net - seafile-net

Loading…
Cancel
Save