-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.17 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
services:
worker:
build:
context: .
dockerfile: worker.Dockerfile
# image: ghcr.io/kauri-off/mine_search/worker:latest
environment:
- THREADS=900
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres-container/${POSTGRES_DB}
depends_on:
- postgres
networks:
- app-network
restart: unless-stopped
backend:
build:
context: .
dockerfile: backend.Dockerfile
# image: ghcr.io/kauri-off/mine_search/worker:latest
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres-container/${POSTGRES_DB}
depends_on:
- postgres
networks:
- app-network
ports:
- "127.0.0.1:3000:3000"
restart: unless-stopped
postgres:
image: postgres
container_name: postgres-container
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- app-network
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432/tcp"
restart: unless-stopped
networks:
app-network:
volumes:
postgres-data: