-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.11 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
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
volumes:
- ~/apps/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=commune-ts-db
admin:
image: adminer
restart: always
depends_on:
- postgres
ports:
- 8080:8080
commune-cache:
build:
context: .
dockerfile: tooling/dockerfile/backend-service.Dockerfile
args:
- PROJECT=commune-cache
- PORT=3010
environment:
- NEXT_PUBLIC_WS_PROVIDER_URL=${NEXT_PUBLIC_WS_PROVIDER_URL}
- PORT=3010
command: npm start
ports:
- 3010:3010
commune-worker:
depends_on:
- postgres
build:
context: .
dockerfile: tooling/dockerfile/backend-service.Dockerfile
args:
- PROJECT=commune-worker
- PORT=3020
environment:
- NEXT_PUBLIC_WS_PROVIDER_URL=${NEXT_PUBLIC_WS_PROVIDER_URL}
- POSTGRES_URL=postgres://postgres:password@postgres:5432/commune-ts-db
- PORT=3020
ports:
- 3020:3020
command: npm start