46 lines
930 B
YAML
46 lines
930 B
YAML
services:
|
|
postgres:
|
|
image: postgres
|
|
shm_size: "256m"
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
PGDATA: /data/postgres
|
|
POSTGRES_DB: test
|
|
volumes:
|
|
- postgres:/data/postgres
|
|
ports:
|
|
- "5432:5432"
|
|
restart: always
|
|
|
|
pgweb:
|
|
# container_name: pgweb
|
|
image: sosedoff/pgweb
|
|
ports:
|
|
- 8081:8081
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/test?sslmode=disable
|
|
depends_on:
|
|
- postgres
|
|
restart: always
|
|
|
|
|
|
backend:
|
|
image: node:18-buster
|
|
command: sleep infinity
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- $PWD/backend:/usr/src/app
|
|
working_dir: /usr/src/app
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_HOST=postgres
|
|
- DB_NAME=postgres
|
|
- DB_USERNAME=postgres
|
|
- DB_PASSWORD=postgres
|
|
|
|
volumes:
|
|
backend_node_modules:
|
|
cms_node_modules:
|
|
postgres: |