适合树莓派宝宝的docker-compose

gitlab

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cat > /root/docker-compose/gitlab/docker-compose.yml << EOF
version: '3'
services:
gitlab:
image: yrzr/gitlab-ce-arm64v8:latest
container_name: gitlab
restart: always
privileged: true
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url = "http://gitlab.fastjrun.com"
gitlab_rails['time_zone'] = 'Asia/Shanghai'
gitlab_rails['gitlab_ssh_host'] = 'gitlab.fastjrun.com'
gitlab_rails['gitlab_shell_ssh_port'] = 22
ports:
- '8080:80'
- '443:443'
- '222:22'
volumes:
- './gitlab/config:/etc/gitlab'
- './gitlab/logs:/var/log/gitlab'
- './gitlab/data:/var/opt/gitlab'
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
EOF

mariadb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cat > /root/docker-compose/mariadb/docker-compose.yml << EOF
version: '3.1'
services:
db:
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD:#自己喜欢
ports:
- 3306:3306
volumes:
- './mysql.conf.d/mysql.cnf:/etc/mysql/mysql.conf.d/mysql.cnf'
- './data:/var/lib/mysql'
adminer:
image: adminer
restart: always
ports:
- 8888:8080
EOF

pixapop

这个没办法分文件夹看图,可惜了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cat > /root/docker-compose/pixapop/docker-compose.yml << EOF
version: "2.1"
services:
pixapop:
image: lscr.io/linuxserver/pixapop:latest
container_name: pixapop
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- APP_USERNAME=#自己喜欢
- APP_PASSWORD=#自己喜欢
volumes:
- /root/docker-compose/pixapop/config:/config
- /root/docker-compose/pixapop/photos:/photos
ports:
- 5555:80
EOF

nextcloud

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cat > /root/docker-compose/nextcloud/docker-compose.yml << EOF
version: '2'

volumes:
nextcloud:
db:

services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=#自己喜欢
- MYSQL_PASSWORD=#自己喜欢
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud

app:
image: nextcloud
restart: always
ports:
- 9999:80
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=#自己喜欢
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
EOF