This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
faithshort:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: faithshort
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DB_HOST: db_faithshort
|
||||
DB_PORT: 5432
|
||||
DB_NAME: faithshort_db
|
||||
DB_USER: faithshort_user
|
||||
DB_PASSWORD: h%%!m2B75hkr5Vh5bZ3V
|
||||
networks:
|
||||
- web
|
||||
depends_on:
|
||||
- db_faithshort
|
||||
restart: unless-stopped
|
||||
|
||||
db_faithshort:
|
||||
image: postgres:17
|
||||
container_name: db_faithshort
|
||||
environment:
|
||||
POSTGRES_DB: faithshort_db
|
||||
POSTGRES_USER: faithshort_user
|
||||
POSTGRES_PASSWORD: h%%!m2B75hkr5Vh5bZ3V
|
||||
volumes:
|
||||
- faithshort_pgdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- web
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
faithshort_pgdata:
|
||||
Reference in New Issue
Block a user