automated push from the terminal
This commit is contained in:
140
compose.yaml
140
compose.yaml
@@ -1,29 +1,75 @@
|
||||
services:
|
||||
# The Django Web Application
|
||||
web:
|
||||
container_name: card-players-unite-web
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
##########################################
|
||||
##
|
||||
## hosting / networking
|
||||
##
|
||||
##########################################
|
||||
|
||||
hosting-proxy:
|
||||
|
||||
container_name: hosting-proxy
|
||||
|
||||
image: softwareshinobi/docker-container-proxy
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/home/app/webapp
|
||||
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
|
||||
- /var/docker/nginx/html:/usr/share/nginx/html
|
||||
|
||||
- /var/docker/nginx/certs:/etc/nginx/certs
|
||||
|
||||
- /var/docker/nginx/vhost:/etc/nginx/vhost.d
|
||||
|
||||
ports:
|
||||
|
||||
- 33080:80
|
||||
|
||||
- 33443:443
|
||||
|
||||
logging:
|
||||
|
||||
options:
|
||||
|
||||
max-size: "10m"
|
||||
|
||||
max-file: "3"
|
||||
|
||||
hosting-letsencrypt:
|
||||
|
||||
container_name: hosting-letsencrypt
|
||||
|
||||
image: jrcs/letsencrypt-nginx-proxy-companion
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
volumes_from:
|
||||
|
||||
- hosting-proxy
|
||||
|
||||
volumes:
|
||||
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
- /var/docker/nginx/acme:/etc/acme.sh
|
||||
|
||||
environment:
|
||||
- POSTGRES_DB=maverickdb
|
||||
- POSTGRES_USER=maverickdb
|
||||
- POSTGRES_PASSWORD=maverickdb
|
||||
- POSTGRES_HOST=card-players-unite-postgres
|
||||
depends_on:
|
||||
- card-players-unite-postgres
|
||||
|
||||
DEFAULT_EMAIL: troy@softwareshinobi.com
|
||||
|
||||
##########################################
|
||||
##
|
||||
## hosting / relational data
|
||||
##
|
||||
##########################################
|
||||
|
||||
card-players-unite-postgres:
|
||||
|
||||
container_name: card-players-unite-postgres
|
||||
|
||||
|
||||
image: postgres:14.1-alpine
|
||||
|
||||
restart: unless-stopped
|
||||
@@ -32,7 +78,7 @@ services:
|
||||
|
||||
- 5432:5432
|
||||
|
||||
environment:
|
||||
environment:
|
||||
|
||||
- POSTGRES_DB=maverickdb
|
||||
|
||||
@@ -40,10 +86,10 @@ services:
|
||||
|
||||
- POSTGRES_PASSWORD=maverickdb
|
||||
|
||||
## volumes:
|
||||
## volumes:
|
||||
##
|
||||
## - /tmp/volume-data-postgres:/var/lib/postgresql/data
|
||||
|
||||
|
||||
card-players-unite-pgadmin:
|
||||
|
||||
container_name: card-players-unite-pgadmin
|
||||
@@ -53,17 +99,59 @@ services:
|
||||
depends_on:
|
||||
|
||||
- card-players-unite-postgres
|
||||
|
||||
|
||||
ports:
|
||||
|
||||
|
||||
- "5480:80"
|
||||
|
||||
|
||||
environment:
|
||||
|
||||
|
||||
PGADMIN_DEFAULT_EMAIL: lorem@loremipsum.com
|
||||
|
||||
|
||||
PGADMIN_DEFAULT_PASSWORD: maverickdb
|
||||
|
||||
## volumes:
|
||||
##
|
||||
## - /tmp/volume-data-pgadmin4:/var/lib/pgadmin
|
||||
##
|
||||
## - /tmp/volume-data-pgadmin4:/var/lib/pgadmin
|
||||
|
||||
##########################################
|
||||
##
|
||||
## hosting / relational data
|
||||
##
|
||||
##########################################
|
||||
|
||||
apis.cardplayersunited.com:
|
||||
|
||||
container_name: apis.cardplayersunited.com
|
||||
|
||||
image: dpage/pgadmin4
|
||||
|
||||
build:
|
||||
|
||||
context: .
|
||||
|
||||
dockerfile: Dockerfile
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
depends_on:
|
||||
|
||||
- card-players-unite-postgres
|
||||
|
||||
ports:
|
||||
|
||||
- 8888:8000
|
||||
|
||||
volumes:
|
||||
|
||||
- .:/home/app/webapp
|
||||
|
||||
environment:
|
||||
|
||||
- POSTGRES_DB=maverickdb
|
||||
|
||||
- POSTGRES_USER=maverickdb
|
||||
|
||||
- POSTGRES_PASSWORD=maverickdb
|
||||
|
||||
- POSTGRES_HOST=card-players-unite-postgres
|
||||
|
||||
Reference in New Issue
Block a user