-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
55 lines (53 loc) · 1.01 KB
/
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
version: '3.8'
services:
app:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8080:8080"
command: yarn start:dev
depends_on:
- postgres
profiles:
- development
- production
env_file:
- ./envs/.env.development
test:
build:
context: ./
dockerfile: Dockerfile
command: yarn test
depends_on:
- postgres
profiles:
- tests
env_file:
- ./envs/.env.test
postgres:
image: postgres:15
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
profiles:
- development
- tests
- production
validator-api:
image: pavelrozhkov/wrapper:6.3.11
ports:
- "3500:3500"
environment:
SESSION_CACHE_DURATION: -1
profiles:
- development
- tests
- production
volumes:
postgres_data: