-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (64 loc) · 1.82 KB
/
docker-compose.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# docker compose setup
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
restart: always
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
labels:
- 'com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true'
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- '/srv/nginx/certs:/etc/nginx/certs:ro'
- '/srv/nginx/vhost.d:/etc/nginx/vhost.d'
- '/usr/share/nginx/html'
- '/srv/nginx/conf.d:/etc/nginx/conf.d'
nginx-proxy2:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
container_name: letsencrypt-nginx-proxy-companion
volumes_from:
- nginx
volumes:
- '/srv/nginx/certs:/etc/nginx/certs:rw'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
gitlab:
image: 'gitlab/gitlab-ce:latest'
restart: always
depends_on:
- nginx
environment:
- VIRTUAL_HOST=gitlab.example.com
- LETSENCRYPT_HOST=gitlab.example.com
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
owncloud:
image: owncloud
restart: always
depends_on:
- nginx
- postgres
environment:
- VIRTUAL_HOST=owncloud.example.com
- LETSENCRYPT_HOST=owncloud.example.com
links:
- postgres
volumes:
- '/srv/owncloud/apps:/var/www/html/apps'
- '/srv/owncloud/config:/var/www/html/config'
- '/srv/owncloud/data:/var/www/html/data'
postgres:
image: 'postgres'
restart: always
environment:
-POSTGRES_PASSWORD: postgresqlpassword
-POSTGRES_USER: postgres
volumes:
- '/srv/postgresql/data:/var/lib/postgresql/data'