-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
61 lines (55 loc) · 1.13 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
version: '3.8'
services:
db:
container_name: db
image: postgres:13
environment:
POSTGRES_DB: cookr
POSTGRES_USER: cookr
POSTGRES_PASSWORD: cookr
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- 5050:80
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- 1025
- 8025:8025
backend:
container_name: backend
build: packages/backend
command: npm start
environment:
CONFIG_PATH: directus.config.js
ports:
- 8055:8055
volumes:
- ./packages/backend:/directus
- /directus/node_modules
depends_on:
- db
- mailhog
frontend:
container_name: frontend
build: packages/frontend
command: npm run dev
volumes:
- ./packages/frontend:/srv/app
- /srv/app/node_modules
depends_on:
- backend
ports:
- 3000:3000
volumes:
pgdata: