This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (66 loc) · 1.62 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
63
64
65
66
67
68
69
70
71
72
73
version: '3.9'
services:
yarn:
image: node:16-alpine
working_dir: /workspace
volumes:
- ./:/workspace
- unplugged:/workspace/.yarn/unplugged
entrypoint: yarn
gateway:
image: node:16-alpine
working_dir: /workspace
volumes:
- ./:/workspace
entrypoint: yarn workspace @gateway/service-entrypoint dev
environment:
DATABASE_URL: postgresql://user:password@db:5432/db?schema=public
RUSSVET_URL: https://cdis.russvet.ru
STOCKS: Тула Тверь
env_file:
- .env
ports:
- 4000:4000
depends_on:
- db
migrate:
image: node:16-alpine
working_dir: /workspace
volumes:
- ./:/workspace
entrypoint: yarn workspace @proxy/persistence run migrate
environment:
DATABASE_URL: postgresql://user:password@db:5432/db?schema=public
depends_on:
- db
migrate-reset:
image: node:16-alpine
working_dir: /workspace
volumes:
- ./:/workspace
entrypoint: yarn workspace @proxy/persistence run migrate-reset
environment:
DATABASE_URL: postgresql://user:password@db:5432/db?schema=public
depends_on:
- db
prisma-generate:
image: node:16-alpine
working_dir: /workspace
volumes:
- ./:/workspace
entrypoint: yarn workspace @proxy/persistence run generate
environment:
DATABASE_URL: postgresql://user:password@db:5432/db?schema=public
depends_on:
- db
db:
image: postgres
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- 5432:5432
volumes:
unplugged: