Spaces:
Sleeping
Sleeping
File size: 559 Bytes
e2244e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
version: '3.8'
services:
db:
image: postgres:13
container_name: my_postgres_db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
web:
build: .
container_name: my_web_app_container
ports:
- "7860:7860"
depends_on:
- db
environment:
- NODE_ENV=development
links:
- db
volumes:
postgres_data:
|