Skip to content

Commit e4ba1f0

Browse files
added nextcloud, mariadb and phpmyadmin
1 parent 8e9713e commit e4ba1f0

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed

Diff for: .gitpod.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
github:
2+
prebuilds:
3+
master: true
4+
branches: true
5+
pullRequests: true
6+
pullRequestsFromForks: true
7+
addCheck: true
8+
addComment: false
9+
addBadge: true
10+
11+
tasks:
12+
- name: Nextcloud Server
13+
init: |
14+
cd gitpod
15+
docker-compose up --no-start
16+
command: |
17+
git config core.fileMode false
18+
chmod -R 777 .
19+
cd gitpod
20+
docker-compose up
21+
22+
- name: Terminal
23+
command: clear
24+
25+
ports:
26+
- port: 8080
27+
onOpen: open-browser
28+
visibility: private
29+
- port: 8081
30+
visibility: private
31+
onOpen: ignore

Diff for: gitpod/Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM nextcloud
2+
3+
COPY custom-entrypoint.sh /custom-entrypoint.sh
4+
RUN chmod +x /custom-entrypoint.sh
5+
6+
ENTRYPOINT ["/custom-entrypoint.sh"]
7+
8+
# Needs to be set again, even though it is already in base image
9+
# reference: https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact
10+
CMD ["apache2-foreground"]

Diff for: gitpod/custom-entrypoint.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
# Both gitpod and Nextcloud need read/write acess
4+
# Obviously not recommended for a production system
5+
chmod -R 777 /var/www/html/custom_apps/
6+
7+
/entrypoint.sh "$@"

Diff for: gitpod/docker-compose.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This is for gitpod, DO NOT USE THIS TO HOST YOUR PRODUCTION NEXTCLOUD
2+
3+
version: '2'
4+
5+
volumes:
6+
nextcloud:
7+
db:
8+
config:
9+
10+
services:
11+
db:
12+
image: mariadb
13+
restart: always
14+
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
15+
volumes:
16+
- db:/var/lib/mysql
17+
environment:
18+
- MYSQL_ROOT_PASSWORD=wdGq73jQB0p373gLdf6yLRj5
19+
- MYSQL_PASSWORD=wdGq73jQB0p373gLdf6yLRj5
20+
- MYSQL_DATABASE=nextcloud
21+
- MYSQL_USER=nextcloud
22+
23+
phpmyadmin:
24+
image: phpmyadmin
25+
container_name: pma
26+
links:
27+
- db
28+
environment:
29+
PMA_HOST: db
30+
PMA_PORT: 3306
31+
restart: always
32+
ports:
33+
- 8081:80
34+
35+
app:
36+
image: nextcloud
37+
build:
38+
context: .
39+
dockerfile: Dockerfile
40+
restart: always
41+
ports:
42+
- 8080:80
43+
links:
44+
- db
45+
volumes:
46+
- nextcloud:/var/www/html
47+
- config:/var/www/html/config
48+
- ${GITPOD_REPO_ROOT}:/var/www/html/custom_apps/user_saml
49+
environment:
50+
- MYSQL_PASSWORD=wdGq73jQB0p373gLdf6yLRj5
51+
- MYSQL_DATABASE=nextcloud
52+
- MYSQL_USER=nextcloud
53+
- MYSQL_HOST=db
54+
- NEXTCLOUD_ADMIN_USER=dev
55+
- NEXTCLOUD_ADMIN_PASSWORD=t2qQ1C6ktYUv7
56+
- NEXTCLOUD_TRUSTED_DOMAINS=*.gitpod.io
57+
- OVERWRITEPROTOCOL=https

0 commit comments

Comments
 (0)