Added docker-compose configuration
This commit is contained in:
46
docker-compose.yaml
Normal file
46
docker-compose.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
mysql-filekeeper:
|
||||
image: mysql:latest
|
||||
container_name: mysql-filekeeper
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: VerySecretPassword
|
||||
volumes:
|
||||
- /opt/mysql:/var/lib/mysql
|
||||
networks:
|
||||
- filekeeper
|
||||
|
||||
filekeeper:
|
||||
image: fossyy/filekeeper:latest
|
||||
container_name: filekeeper
|
||||
environment:
|
||||
SERVER_HOST: 0.0.0.0
|
||||
SERVER_PORT: 8000
|
||||
DOMAIN: filekeeper.fossy.my.id
|
||||
CORS_PROTO: https
|
||||
CORS_LIST: filekeeper.fossy.my.id:443,fossy.my.id:443
|
||||
CORS_METHODS: POST,GET
|
||||
DB_HOST: mysql-filekeeper
|
||||
DB_PORT: 3306
|
||||
DB_USERNAME: root
|
||||
DB_PASSWORD: VerySecretPassword
|
||||
DB_NAME: filekeeper
|
||||
SMTP_HOST: mail.example.com
|
||||
SMTP_PORT: 25
|
||||
SMTP_USER: no-reply@example.com
|
||||
SMTP_PASSWORD: VerySecretPassword
|
||||
SESSION_NAME: Session
|
||||
SESSION_MAX_AGE: 604800
|
||||
volumes:
|
||||
- /opt/filekeeper/uploads:/src/uploads
|
||||
networks:
|
||||
- filekeeper
|
||||
depends_on:
|
||||
- mysql-filekeeper
|
||||
restart: on-failure
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
networks:
|
||||
filekeeper:
|
Reference in New Issue
Block a user