settings section
This commit is contained in:
40
docker-compose.yaml
Executable file
40
docker-compose.yaml
Executable file
@@ -0,0 +1,40 @@
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
main-db:
|
||||
image: postgres:14.1-alpine
|
||||
container_name: "main-db"
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=bank_admin
|
||||
- POSTGRES_PASSWORD=bank@#23#@_password
|
||||
- POSTGRES_DB=bank_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
|
||||
|
||||
Reference in New Issue
Block a user