-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1017 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
services:
ychat-pg:
image: postgres:17-alpine
container_name: ychat-pg
restart: unless-stopped
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
env_file:
- ./.env
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- ychat_pgdata:/var/lib/postgresql/data
networks:
- default
ychat-api:
build:
context: ./apps/api
dockerfile: Dockerfile
container_name: ychat-api
restart: unless-stopped
env_file:
- ./apps/api/.env
ports:
- "${API_PORT}:4000"
depends_on:
- ychat-pg
networks:
- default
ychat-web:
build:
context: ./apps/web
dockerfile: Dockerfile
container_name: ychat-web
restart: unless-stopped
env_file:
- ./apps/web/.env
ports:
- "${WEB_PORT}:3000"
networks:
- default
volumes:
ychat_pgdata:
networks:
default:
driver: bridge
name: ychat_net