Skip to content

Commit

Permalink
misc: add another docker-compose file with database & Redis (#620)
Browse files Browse the repository at this point in the history
Save us from the pain of having to configure a database elsewhere if
you'd like to simply "docker compose up" and have a full running setup.

Includes both MariaDB and Redis for local testing.
  • Loading branch information
thor authored Sep 28, 2023
1 parent 1250631 commit b4fd1cb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker-compose.dev.full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3'

services:
web:
container_name: controlcenter
build: .
ports:
- 8080:80
- 8443:443
extra_hosts:
- "vatsca.local:host-gateway"
volumes:
- ./:/app
db:
image: docker.io/library/mariadb:10
ports:
- 3306:3306
environment:
MARIADB_DATABASE: controlcenter
MARIADB_ROOT_PASSWORD: root
redis:
image: docker.io/library/redis:6.2-alpine
restart: always
ports:
- 6379:6379
volumes:
- cache:/data
volumes:
cache:
driver: local

0 comments on commit b4fd1cb

Please sign in to comment.