-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.39 KB
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
#USER=$(id -u) docker-compose up --build
services:
gophers-api:
build: .
restart: always
user: $USER
ports:
- "8000:8000"
volumes:
- "./images/:/go/images/:rw"
networks:
- nginx-proxy
#nginx-proxy:
# image: jwilder/nginx-proxy:alpine
# restart: "always"
# ports:
# - "80:80"
# - "443:443"
# networks:
# - nginx-proxy
# labels:
# - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy" # Label needed for Let's Encrypt companion container
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - "nginx-conf:/etc/nginx/conf.d"
# - "nginx-vhost:/etc/nginx/vhost.d"
# - "html:/usr/share/nginx/html"
# - "certs:/etc/nginx/certs:ro"
# -
#letsencrypt-nginx-proxy-companion:
# image: jrcs/letsencrypt-nginx-proxy-companion
# restart: always
# container_name: letsencrypt-nginx-proxy-companion
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# - "nginx-conf:/etc/nginx/conf.d"
# - "nginx-vhost:/etc/nginx/vhost.d"
# - "html:/usr/share/nginx/html"
# - "certs:/etc/nginx/certs:rw"
# depends_on: # Make sure we start nginx proxy container first
# - nginx-proxy
networks:
nginx-proxy:
volumes: # Names of volumes that out containers will share. Those will persist on docker's host machine.
nginx-conf:
nginx-vhost:
html:
certs: