Skip to content

Instantly share code, notes, and snippets.

@rumblefrog
Created October 6, 2023 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rumblefrog/85580d62d1bff4c5c1281ad56ae95da2 to your computer and use it in GitHub Desktop.
Save rumblefrog/85580d62d1bff4c5c1281ad56ae95da2 to your computer and use it in GitHub Desktop.
version: '3'
services:
web:
image: crinis/sourcebans:latest
environment:
# Enable on install or update and make sure to set this to 'false' afterwards
# Also set this to false if you made any manual changes to Sourcebans sourcecode you want to keep
INSTALL: 'true'
networks:
- db
ports:
# Change the port before the colon to whatever you want to use
- 80:8080
volumes:
- sourcebans:/var/www/html/
# You can enable the following three lines to run the container as a different user. For example when using podman.
# - sourcebans:/var/www/html/:z
# user: ${DOCKER_UID:-1000}:${DOCKER_GID:-1000}
# userns_mode: "keep-id"
db:
image: mariadb:10
environment:
MYSQL_USER: sourcebans
MYSQL_PASSWORD: ThisShouldBeAStrongPassword
MYSQL_DATABASE: sourcebans
MYSQL_ROOT_PASSWORD: ThisShouldBeAStrongPassword
volumes:
- mysql:/var/lib/mysql
networks:
- db
ports:
- 3306:3306
networks:
db:
volumes:
sourcebans:
mysql:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment