Shorten container names

This commit is contained in:
Hakan Ensari 2019-12-24 13:11:32 +00:00
parent dd454a43ea
commit 26f55e8a60
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ services:
max-file: "10"
restart: unless-stopped
nginx-proxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
@ -30,6 +31,7 @@ services:
- html:/usr/share/nginx/html
- vhost.d:/etc/nginx/vhost.d
letsencrypt-nginx-proxy-companion:
container_name: nginx-proxy-le
image: jrcs/letsencrypt-nginx-proxy-companion
depends_on:
- nginx-proxy

View File

@ -1,10 +1,12 @@
version: '3'
services:
db:
container_name: db
image: postgres:11
volumes:
- data:/var/lib/postgresql/data
web:
container_name: app
command: bundle exec unicorn -c config/unicorn.rb
entrypoint: bin/wait-for-it.sh db:5432 -s --
environment: