forked from kamba4/sunders
feat: Adds compose file
This commit is contained in:
parent
285de74afa
commit
b99799159e
1 changed files with 34 additions and 0 deletions
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
version: '3.8'
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mariadb:12.0.2
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: rootpassword # ${{secrets.MYSQL_ROOT_PASSWORD}}
|
||||||
|
MYSQL_DATABASE: camera # ${{secrets.MYSQL_DATABASE}}
|
||||||
|
MYSQL_USER: camera # ${{secrets.MYSQL_USER}}
|
||||||
|
MYSQL_PASSWORD: camerapassword # ${{secrets.MYSQL_PASSWORD}}
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
web:
|
||||||
|
image: git.hamburg.ccc.de/ccchh/sunders/web:latest
|
||||||
|
environment:
|
||||||
|
MYSQL_HOST: db
|
||||||
|
MYSQL_DB: camera # ${{secrets.MYSQL_DATABASE}}
|
||||||
|
MYSQL_USER: camera # ${{secrets.MYSQL_USER}}
|
||||||
|
MYSQL_PASSWORD: camerapassword # ${{secrets.MYSQL_PASSWORD}}
|
||||||
|
DEFAULT_ZOOM: 12
|
||||||
|
DEFAULT_LAT: 0
|
||||||
|
DEFAULT_LON: 0
|
||||||
|
DEFAULT_LANGUAGE: en
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- ./www/sunders:/var/www/html
|
Loading…
Add table
Add a link
Reference in a new issue