forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userdata.yaml
57 lines (53 loc) · 1.57 KB
/
userdata.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#cloud-config
package_update: true
packages:
- docker.io
- docker-compose
write_files:
- path: /root/docker-compose.yaml
content: |
version: "3"
services:
gitlab:
image: gitlab/gitlab-ce
restart: always
ports:
- '2020:22'
expose:
- '80'
volumes:
- ./gitlab/config:/etc/gitlab
- ./gitlab/logs:/var/log/gitlab
- ./gitlab/data:/var/opt/gitlab
environment:
- GITLAB_OMNIBUS_CONFIG='external_url \'https://git.pablokbs.com\''
- VIRTUAL_HOST=git.pablokbs.com
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=git.pablokbs.com
nginx:
image: jwilder/nginx-proxy
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
volumes:
vhost:
html:
runcmd:
- docker-compose -f /root/docker-compose.yaml up -d