Replace bank_db/bank_admin with example_db/example_user in config.yaml, docker-compose, Makefile, and README so pushed templates do not expose real credentials. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
761 B
YAML
Executable File
41 lines
761 B
YAML
Executable File
version: '3.4'
|
|
|
|
services:
|
|
main-db:
|
|
image: postgres:14.1-alpine
|
|
container_name: "main-db"
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=example_user
|
|
- POSTGRES_PASSWORD=example_password
|
|
- POSTGRES_DB=example_db
|
|
ports:
|
|
- '5424:5432'
|
|
volumes:
|
|
- main-db-storage:/var/lib/postgresql/data
|
|
networks:
|
|
- myNetwork
|
|
main-server:
|
|
image: main-app
|
|
restart: unless-stopped
|
|
container_name: "main-app"
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5050:5050"
|
|
volumes:
|
|
- ./public:/app/public
|
|
depends_on:
|
|
- main-db
|
|
networks:
|
|
- myNetwork
|
|
|
|
volumes:
|
|
main-db-storage:
|
|
|
|
networks:
|
|
myNetwork:
|
|
driver: bridge
|
|
|