-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (39 loc) · 903 Bytes
/
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
version: '3.9'
services:
backend:
image: node:17
container_name: backend
restart: on-failure
depends_on:
- database
environment:
NODE_ENV: development
PORT: 8000
volumes:
- ./backend/:/backend
ports:
- 8000:8000
working_dir: /backend
command: bash -c 'yarn install && yarn run dev'
database:
image: postgres:12
container_name: database
restart: on-failure
volumes:
- ./backend/db-data/:/var/lib/postgresql/data
environment:
POSTGRES_USER: tester
POSTGRES_PASSWORD: asd
POSTGRES_DB: tester
frontend:
image: node:17
container_name: frontend
restart: on-failure
volumes:
- ./frontend:/frontend
environment:
NODE_ENV: development
ports:
- 3000:3000
working_dir: /frontend
command: bash -c 'yarn install && yarn run dev'