-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (79 loc) · 1.55 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.8'
services:
api:
build: ./siralim-ultimate-api
environment:
- DATABASE_URL=postgresql://postgres:F00B4RYY@postgres:5432/siralim_ultimate_api
- PORT=8000
- ALLOW_ORIGINS=localhost
volumes:
- ./siralim-ultimate-api:/code
networks:
- api
- postgres
- redis
depends_on:
postgres:
condition: service_healthy
ui:
build:
context: ./siralim-ultimate-ui
dockerfile: Dockerfile.dev
volumes:
- ./siralim-ultimate-ui/src:/ui/src
- ./siralim-ultimate-ui/public:/ui/public
environment:
- PORT=3000
ports:
- "3000:3000"
networks:
- ui
nginx:
build: ./siralim-ultimate-nginx
environment:
- API_URL=api:8000
- API_HOST=api:8000
- UI_URL=ui:3000
- UI_HOST=ui:3000
- PORT=80
- PROTOCOL=http
ports:
- "80:80"
networks:
- api
- ui
depends_on:
- api
- ui
postgres:
image: postgres:12.8
restart: always
environment:
- POSTGRES_PASSWORD=F00B4RYY
- POSTGRES_DB=siralim_ultimate_api
volumes:
- postgres:/var/lib/postgresql/data
networks:
- postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:6.2.5
networks:
- redis
ocr:
build: ./siralim-ultimate-ocr
volumes:
- ./siralim-ultimate-ocr:/code
profiles:
- donotstart
volumes:
postgres:
networks:
api:
postgres:
redis:
ui: