summary refs log tree commit diff
path: root/docker-compose.yml
blob: 13696f6f6959920564af1a75b4ebf0a30d7ff89a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.8'

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}/
    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
    driver: bridge