-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 904 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 904 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
41
42
43
44
45
46
47
48
49
50
51
52
services:
client:
build: ./client
container_name: client
ports:
- 5173:5173
env_file:
- ./client/.env.development
depends_on:
- server
networks:
- app-network
volumes:
- ./client:/app
- /app/node_modules
server:
build: ./server
container_name: server
ports:
- 8000:8000
env_file:
- ./server/.env
networks:
- app-network
volumes:
- ./server:/app
depends_on:
- db
db:
image: postgres:16-alpine
container_name: db_social
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: socialdb
PGPORT: 5433
networks:
- app-network
ports:
- 5433:5433
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
app-network:
driver: bridge
volumes:
postgres_data: