forked from gilyes/docker-nginx-letsencrypt-sample
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
82 lines (76 loc) · 2.29 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
80
81
82
version: "2"
services:
nginx:
restart: always
image: nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/nginx/conf.d"
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
- "./volumes/proxy/certs:/etc/nginx/certs:ro"
nginx-gen:
restart: always
image: jwilder/docker-gen
container_name: nginx-gen
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./volumes/proxy/templates/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
volumes_from:
- nginx
entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
letsencrypt-nginx-proxy-companion:
restart: always
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-nginx-proxy-companion
volumes_from:
- nginx
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./volumes/proxy/certs:/etc/nginx/certs:rw"
environment:
- NGINX_DOCKER_GEN_CONTAINER=nginx-gen
api:
restart: always
image: api
build: ./build/api
container_name: api
environment:
- VIRTUAL_HOST=api.kinokabaret.com
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=api.kinokabaret.com
- LETSENCRYPT_EMAIL=support@kinokabaret.com
website:
restart: always
image: website
build: ./build/website
container_name: website
volumes:
- "./volumes/nginx-website/conf.d/:/etc/nginx/conf.d"
- "./volumes/config/website/config.js:/usr/share/nginx/html/config.js"
environment:
- VIRTUAL_HOST=kinokabaret.com,www.kinokabaret.com
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=kinokabaret.com
- LETSENCRYPT_EMAIL=support@kinokabaret.com
web:
restart: always
image: 'gitlab/gitlab-ce:latest'
hostname: 'kinokabaret.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.kinokabaret.com'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '4443:443'
- '8080:80'
- '2224:22'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'