Añadir z1/docker-compose.yaml
This commit is contained in:
parent
58e15711b9
commit
f62cc42aa7
51
z1/docker-compose.yaml
Normal file
51
z1/docker-compose.yaml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
image: nginx:latest
|
||||||
|
container_name: zkt_frontend
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
volumes:
|
||||||
|
- ./frontend/index.html:/usr/share/nginx/html/index.html:ro
|
||||||
|
- ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
networks:
|
||||||
|
- zkt_net
|
||||||
|
restart: on-failure
|
||||||
|
|
||||||
|
backend:
|
||||||
|
build: ./backend
|
||||||
|
image: zkt-notes-backend
|
||||||
|
container_name: zkt_backend
|
||||||
|
environment:
|
||||||
|
DB_HOST: db
|
||||||
|
DB_NAME: notesdb
|
||||||
|
DB_USER: notesuser
|
||||||
|
DB_PASSWORD: notessecret
|
||||||
|
DB_PORT: "5432"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
networks:
|
||||||
|
- zkt_net
|
||||||
|
restart: on-failure
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:16
|
||||||
|
container_name: zkt_db
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: notesdb
|
||||||
|
POSTGRES_USER: notesuser
|
||||||
|
POSTGRES_PASSWORD: notessecret
|
||||||
|
volumes:
|
||||||
|
- zkt_db_data:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- zkt_net
|
||||||
|
restart: on-failure
|
||||||
|
|
||||||
|
networks:
|
||||||
|
zkt_net:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
zkt_db_data:
|
||||||
|
external: true
|
||||||
Loading…
Reference in New Issue
Block a user