examples
This commit is contained in:
parent
afa7910e8a
commit
c86a0391aa
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
|
updates.json
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@ services:
|
|||||||
image: docker.clkl.de/docker/update:0.1_alpine
|
image: docker.clkl.de/docker/update:0.1_alpine
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/docker/services:/services
|
# - /opt/docker/services:/services
|
||||||
|
- ./sample:/services
|
||||||
- ./:/out/
|
- ./:/out/
|
||||||
command: bash -c 'python3 /out/show_updateable.py -s -o /out/updates.json /services/* --ignore zammad'
|
command: bash -c 'python3 /out/show_updateable.py -s -o /out/updates.json /services/* --ignore zammad'
|
||||||
|
|||||||
@ -2,7 +2,7 @@ version: "2"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
http:
|
http:
|
||||||
image: httpd:alpine
|
image: httpd:2.4.32-alpine
|
||||||
# ports:
|
# ports:
|
||||||
# - "80:80"
|
# - "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
@ -17,3 +17,4 @@ networks:
|
|||||||
traefik_net:
|
traefik_net:
|
||||||
external:
|
external:
|
||||||
name: traefik_net
|
name: traefik_net
|
||||||
|
|
||||||
|
|||||||
35
sample/nextcloud/docker-compose.yml
Normal file
35
sample/nextcloud/docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
cloud:
|
||||||
|
image: nextcloud:14.0.8-apache
|
||||||
|
# image: owncloud/server:10.0.8
|
||||||
|
restart: on-failure:5
|
||||||
|
depends_on:
|
||||||
|
- dbcloud
|
||||||
|
volumes:
|
||||||
|
- ./data:/files
|
||||||
|
- ./config:/var/www/html/config
|
||||||
|
- ./apps:/var/www/html/custom_apps
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:3020:80"
|
||||||
|
|
||||||
|
|
||||||
|
dbcloud:
|
||||||
|
image: mariadb:10.3.2
|
||||||
|
restart: on-failure:5
|
||||||
|
env_file:
|
||||||
|
- docker.env
|
||||||
|
environment:
|
||||||
|
# - MYSQL_ROOT_PASSWORD=VerySecurePassword
|
||||||
|
# - MYSQL_USER=cloud
|
||||||
|
# - MYSQL_PASSWORD=CorrectBatteryHorseStaple
|
||||||
|
# - MYSQL_DATABASE=cloud
|
||||||
|
- MYSQL_MAX_ALLOWED_PACKET=128M
|
||||||
|
- MYSQL_INNODB_LOG_FILE_SIZE=64M
|
||||||
|
- MYSQL_INNODB_LARGE_PREFIX=ON
|
||||||
|
- MYSQL_INNODB_FILE_FORMAT=Barracuda
|
||||||
|
volumes:
|
||||||
|
- ./mysql:/var/lib/mysql
|
||||||
|
|
||||||
|
|
||||||
0
sample/nextcloud/docker.env
Normal file
0
sample/nextcloud/docker.env
Normal file
22
sample/withDockerfile/docker-compose.yml
Normal file
22
sample/withDockerfile/docker-compose.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
someservice:
|
||||||
|
build:
|
||||||
|
context: ./docker/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
restart: on-failure:5
|
||||||
|
depends_on:
|
||||||
|
- dbsomeservice
|
||||||
|
|
||||||
|
|
||||||
|
dbsomeservice:
|
||||||
|
image: mariadb:10.3.2
|
||||||
|
restart: on-failure:5
|
||||||
|
env_file:
|
||||||
|
- docker.env
|
||||||
|
volumes:
|
||||||
|
- ./mysql:/var/lib/mysql
|
||||||
|
|
||||||
0
sample/withDockerfile/docker.env
Normal file
0
sample/withDockerfile/docker.env
Normal file
7
sample/withDockerfile/docker/Dockerfile
Normal file
7
sample/withDockerfile/docker/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM alpine:3.6
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
RUN apk add --update python3 python3-dev git g++ nodejs-npm mariadb-dev mariadb-client-libs openldap-dev \
|
||||||
|
&& apk del nodejs-npm mariadb-dev git g++ python3-dev
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user