optimzations for dashbaord
This commit is contained in:
@@ -25,8 +25,39 @@ x-shared_environment: &shared_environment
|
||||
DATABASE_NAME: cod_db
|
||||
DATABASE_USERNAME: cod
|
||||
DATABASE_PASSWORD: pw4cod
|
||||
VIRTUAL_HOST: app.local
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
image: jwilder/nginx-proxy:alpine
|
||||
restart: "always" # Always restart container
|
||||
ports:
|
||||
- "80:80" # Port mappings in format host:container
|
||||
- "443:443" # Port mappings in format host:container
|
||||
networks:
|
||||
- nginx-proxy # Name of the etwork these two containers will share
|
||||
labels:
|
||||
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy" # Label needed for Let's Encrypt companion container
|
||||
volumes: # Volumes needed for container to configure proixes and access certificates genereated by Let's Encrypt companion container
|
||||
- /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
|
||||
- app
|
||||
- nginx-proxy
|
||||
app:
|
||||
image: cod-backend:latest
|
||||
build:
|
||||
@@ -72,3 +103,11 @@ services:
|
||||
POSTGRES_DB: cod_db
|
||||
ports:
|
||||
- '5432:5432'
|
||||
networks:
|
||||
nginx-proxy: # Name of our shared network that containers will use
|
||||
volumes: # Names of volumes that out containers will share. Those will persist on docker's host machine.
|
||||
nginx-conf:
|
||||
nginx-vhost:
|
||||
html:
|
||||
certs:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user