forked from DadJokes-io/Dad_Jokes_API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 842 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (33 loc) · 842 Bytes
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
version: '3.7'
services:
dadjokes_api_container:
container_name: dadjokes_api_container
restart: always
build: './'
environment:
VIRTUAL_HOST: api.dadjokes.io
LETSENCRYPT_HOST: api.dadjokes.io
expose:
- '8080'
nginx-proxy:
container_name: nginx_container
restart: always
image: jwilder/nginx-proxy
ports:
- '80:80'
- '443:443'
volumes:
- '/etc/nginx/vhost.d'
- '/usr/share/nginx/html'
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- '/etc/nginx/certs'
depends_on:
- dadjokes_api_container
letsencrypt-nginx-proxy-companion:
container_name: letsencrypt
restart: always
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
volumes_from:
- 'nginx-proxy'