synchronization
This commit is contained in:
5
Docker/Compose/Yml/Dockerfile
Normal file
5
Docker/Compose/Yml/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM busybox:latest AS prod
|
||||
|
||||
RUN echo "启动成功" > /file.txt
|
||||
|
||||
CMD ["tail","-f","/file.txt"]
|
16
Docker/Compose/Yml/build-compose.yml
Normal file
16
Docker/Compose/Yml/build-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
webapp:
|
||||
build: ./
|
||||
|
||||
# services:
|
||||
# webapp:
|
||||
# build:
|
||||
# context: ./
|
||||
# dockerfile: Dockerfile
|
||||
# args:
|
||||
# buildno: 1
|
||||
# labels:
|
||||
# - "offends"
|
||||
# target: prod
|
7
Docker/Compose/Yml/docker-compose.yml
Normal file
7
Docker/Compose/Yml/docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
52
Docker/Compose/Yml/gitlab-compose.yml
Normal file
52
Docker/Compose/Yml/gitlab-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
gitlab:
|
||||
depends_on:
|
||||
- redis
|
||||
- postgresql
|
||||
restart: always
|
||||
image: sameersbn/gitlab:latest
|
||||
environment:
|
||||
- DEBUG=false
|
||||
- TZ=Asia/Shanghai
|
||||
- GITLAB_TIMEZONE=Beijing
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- DB_ADAPTER=postgresql
|
||||
- DB_HOST=postgresql
|
||||
- DB_PORT=5432
|
||||
- DB_USER=gitlab
|
||||
- DB_PASS=gitlab
|
||||
- DB_NAME=gitlabhq_production
|
||||
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
|
||||
- GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string
|
||||
- GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
|
||||
- GITLAB_HOST=192.168.1.10
|
||||
- GITLAB_PORT=80
|
||||
- GITLAB_SSH_HOST=192.168.1.10
|
||||
- GITLAB_SSH_PORT=222
|
||||
ports:
|
||||
- "222:22"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- /data/gitlab/data:/home/git/data:Z
|
||||
- /data/gitlab/node_modules:/home/git/gitlab/node_modules:Z
|
||||
- /data/gitlab/log:/var/log/gitlab:Z
|
||||
|
||||
redis:
|
||||
restart: always
|
||||
image: sameersbn/redis:latest
|
||||
volumes:
|
||||
- /data/gitlab/redis:/var/lib/redis:Z
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:14
|
||||
environment:
|
||||
- DB_EXTENSION=pg_trgm,btree_gist
|
||||
- DB_USER=gitlab
|
||||
- DB_PASS=gitlab
|
||||
- DB_NAME=gitlabhq_production
|
||||
volumes:
|
||||
- /data/gitlab/postgresql:/var/lib/postgresql:Z
|
Reference in New Issue
Block a user