This commit is contained in:
Stefan Liebl 2020-07-08 15:40:41 +02:00
parent 32d81b73bb
commit 8a57424e8f
3 changed files with 36 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
data
db

View File

@ -1,3 +1,13 @@
# docker-compose-workshop # Just a running alpine linux
Docker-Compose workshop ## Start
docker-compose up -d
## Login
docker-compose exec jenkins sh
## Stop
docker-compose down

22
docker-compose.yaml Normal file
View File

@ -0,0 +1,22 @@
version: '2'
services:
app:
image: gitea/gitea:1.11.1
volumes:
- ./data:/data
ports:
- "3000:3000"
- "8022:22"
depends_on:
- db
restart: always
db:
image: mariadb:10.4
restart: always
environment:
- MYSQL_ROOT_PASSWORD=LLKALrsd82mNnst
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=Pzrq2oJhooP37ax
volumes:
- ./db/:/var/lib/mysql