Arthur Chalard 1 year ago
parent
commit
8e71cb385d
2 changed files with 9 additions and 8 deletions
  1. 1 0
      .gitignore
  2. 8 8
      docker-compose.yml

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 pydio
 seafile
 ssl
+.env

+ 8 - 8
docker-compose.yml

@@ -21,9 +21,9 @@ services:
     restart: always
     environment:
       MYSQL_RANDOM_ROOT_PASSWORD: 1
-      MYSQL_DATABASE: cells
-      MYSQL_USER: admin
-      MYSQL_PASSWORD: admin
+      MYSQL_DATABASE: ${MYSQL_DB}
+      MYSQL_USER: ${MYSQL_USER}
+      MYSQL_PASSWORD: ${MYSQL_PASS}
     command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
     volumes:
       - ./pydio/db:/var/lib/mysql
@@ -37,7 +37,7 @@ services:
     image: mariadb:10.5
     container_name: seafile-mysql
     environment:
-      - MYSQL_ROOT_PASSWORD=db_dev  # Requested, set the root's password of MySQL service.
+      - MYSQL_ROOT_PASSWORD=${DB_PASS}  # Requested, set the root's password of MySQL service.
       - MYSQL_LOG_CONSOLE=true
     volumes:
       - ./seafile/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
@@ -61,12 +61,12 @@ services:
       - ./seafile/data:/shared   # Requested, specifies the path to Seafile data persistent store.
     environment:
       - DB_HOST=db
-      - DB_ROOT_PASSWD=db_dev  # Requested, the value shuold be root's password of MySQL service.
+      - DB_ROOT_PASSWD=${DB_PASS}  # Requested, the value shuold be root's password of MySQL service.
       - TIME_ZONE=Europe/Zurich  # Optional, default is UTC. Should be uncomment and set to your local time zone.
-      - SEAFILE_ADMIN_EMAIL=arthur@chalard.ch # Specifies Seafile admin user, default is 'me@example.com'.
-      - SEAFILE_ADMIN_PASSWORD=admin     # Specifies Seafile admin password, default is 'asecret'.
+      - SEAFILE_ADMIN_EMAIL=${SF_EMAIL} # Specifies Seafile admin user, default is 'me@example.com'.
+      - SEAFILE_ADMIN_PASSWORD=${SF_PASS}     # Specifies Seafile admin password, default is 'asecret'.
       - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
-      - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
+      - SEAFILE_SERVER_HOSTNAME=${SF_HOSTNAME} # Specifies your host name if https is enabled.
     depends_on:
       - db
       - memcached