-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 903 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 903 Bytes
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
32
33
34
35
36
37
38
39
40
services:
# backend:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: todo-app # Fixed: underscore instead of hyphen
# ports:
# - "8080:8080"
# volumes:
# - ./:/app
# environment:
# - DATABASE_URL=postgresql://postgresuser:postgrespassword@postgres:5432/db_postgres
# - NODE_ENV=development
# - CORS_URL=http://localhost:3000
# depends_on:
# - postgres
# networks:
# - todo-network
postgres:
image: postgres:18
container_name: db_server
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgresuser
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: db_postgres
volumes:
- postgres_data:/var/lib/postgresql/data
# networks:
# - todo-network
volumes:
postgres_data:
# networks:
# todo-network:
# driver: bridge