diff options
author | Nobody <17956512+n0bodysec@users.noreply.github.com> | 2022-07-20 03:43:34 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 09:43:34 +0300 |
commit | db2b94c0a3a0063e1b32e524d4a0cde562f2686b (patch) | |
tree | d344adad5e35ec7176e18fb2dafd53a46732b868 /docker-compose.yml | |
parent | chore: fix package.json scripts (diff) | |
download | server-db2b94c0a3a0063e1b32e524d4a0cde562f2686b.tar.xz |
chore!: update docker scripts (#797)
BREAKING CHANGE: this new docker image no longer clones this repository. Some manual steps are required * chore!: update docker scripts * chore: fix paths in docker scripts * chore: add config docker compose
Diffstat (limited to '')
-rw-r--r-- | docker-compose.yml | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 13696f6f..4dc1ee41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,46 +1,24 @@ -version: '3.8' +version: '3.9' services: + fosscord: container_name: fosscord image: fosscord restart: on-failure:5 - # depends_on: mariadb build: . ports: - '3001-3005:3001-3005' volumes: - # - ./data/:${WORK_DIR:-/srv/fosscord-server}/data/ - - data:${WORK_DIR:-/srv/fosscord-server}/ + - ./:/srv/fosscord-server/ environment: - WORK_DIR: ${WORK_DIR:-/srv/fosscord-server} - DEV_MODE: ${DEV_MODE:-0} THREADS: ${THREADS:-1} - DATABASE: ${DATABASE:-../../data/database.db} - STORAGE_LOCATION: ${STORAGE_LOCATION:-../../data/files/} HTTP_PORT: 3001 WS_PORT: 3002 CDN_PORT: 3003 RTC_PORT: 3004 ADMIN_PORT: 3005 - # mariadb: - # image: mariadb:latest - # restart: on-failure:5 - # environment: - # MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-secr3tpassw0rd} - # MYSQL_DATABASE: ${MYSQL_DATABASE:-fosscord} - # MYSQL_USER: ${MYSQL_USER:-fosscord} - # MYSQL_PASSWORD: ${MYSQL_PASSWORD:-password1} - # networks: - # - default - # volumes: - # - mariadb:/var/lib/mysql - -volumes: - data: - # mariadb: - networks: default: name: fosscord |