-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.08 KB
/
docker-compose.yml
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
53
54
55
56
57
58
59
60
61
62
services:
web:
build:
context: apps/web
dockerfile: Dockerfile
target: builder
command: yarn dev
env_file: apps/web/.env.local
image: web
volumes:
- ./apps/web:/app
ports:
- "3000:3000"
depends_on:
- api
admin:
build:
context: apps/admin
dockerfile: Dockerfile
target: builder
command: yarn dev
env_file: apps/admin/.env.local
image: admin
volumes:
- ./apps/admin:/app
ports:
- 4000:3000
depends_on:
- api
api:
build:
context: apps/api
dockerfile: Dockerfile
target: builder
command: yarn dev
env_file: apps/api/.env
image: api
volumes:
- ./apps/api:/app
# - /app/node_modules
ports:
- "3333:3333"
depends_on:
- postgres
postgres:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: aafiyah
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
volumes:
database: