diff --git a/README.md b/README.md index e69de29..73bb454 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,12 @@ +# DOCKER + +Collection of docker-compose files + +**gitea** +*Git repository server* + +**thea** +*Online IDE* + +**wallabag** +*Read later app* diff --git a/gitea/docker-compose.yaml b/gitea/docker-compose.yaml new file mode 100644 index 0000000..76e05b5 --- /dev/null +++ b/gitea/docker-compose.yaml @@ -0,0 +1,58 @@ +version: "3" + +networks: + net: + +services: + server: + image: gitea/gitea:latest + container_name: gitea + environment: + - USER_UID=1002 + - USER_GID=1002 + - GITEA__database__DB_TYPE=mysql + - GITEA__database__HOST=db:3306 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=SQL_PW + - "TZ=Europe/Stockholm" # offset +01:00 / DST +02:00 + restart: unless-stopped + networks: + - net + volumes: + - data:/data + - /home/git/.ssh:/data/git/.ssh + - ./backup:/tmp/ + ports: + - "127.0.0.1:8002:3000" + - "127.0.0.1:2222:22" + depends_on: + - db + healthcheck: + test: "curl -s -o /dev/null -w \"%{http_code}\" localhost:3000 | grep -q 200" + interval: 300s + timeout: 10s + retries: 2 + db: + image: mysql:8.0 + container_name: gitea-db + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD=SQL_ROOT_PW + - MYSQL_USER=gitea + - MYSQL_PASSWORD=SQL_PW + - MYSQL_DATABASE=gitea + networks: + - net + security_opt: + - seccomp:unconfined + volumes: + - db-data:/var/lib/mysql + healthcheck: + test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u", "gitea", "--password=gitea"] + interval: 30s + timeout: 10s + retries: 2 +volumes: + data: + db-data: diff --git a/thea/docker-compose.yaml b/thea/docker-compose.yaml new file mode 100644 index 0000000..632a330 --- /dev/null +++ b/thea/docker-compose.yaml @@ -0,0 +1,18 @@ +version: '3' + +services: + ide: + restart: unless-stopped + image: theiaide/theia-full #Image with all + container_name: theia + #init: true + ports: + - "127.0.0.1:50003:3000" + - "127.0.0.1:50004:8080" + healthcheck: + test: "curl -s -o /dev/null -w \"%{http_code}\" localhost:3000 | grep -q 200" + interval: 300s + timeout: 10s + retries: 2 + volumes: + - ./project:/home/project/:cached diff --git a/wallabag/docker-compose.yaml b/wallabag/docker-compose.yaml new file mode 100644 index 0000000..ff10a78 --- /dev/null +++ b/wallabag/docker-compose.yaml @@ -0,0 +1,28 @@ +version: "3" + +services: + app: + image: wallabag/wallabag + container_name: wallabag + restart: unless-stopped + healthcheck: + test: + [ + "CMD", + "wget", + "--no-verbose", + "--tries=1", + "--spider", + "http://localhost", + ] + interval: 1m + timeout: 3s + environment: + - SYMFONY__ENV__DOMAIN_NAME=https://wallabag.gerstner.se + - SYMFONY__ENV__SERVER_NAME="My Wallabag Instance" + - SYMFONY__ENV__FOSUSER_REGISTRATION=false + ports: + - 127.0.0.1:8012:80 + volumes: + - ./data:/var/www/wallabag/data + - ./images:/var/www/wallabag/web/assets/images