-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
119 lines (110 loc) · 2.99 KB
/
docker-compose.yaml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
nginx:
image: docker.io/nginxinc/nginx-unprivileged:1.21.6-alpine
ports:
- "8090:8080"
hostname: rueder
volumes:
- type: bind
source: ./config/nginx-conf.d-prod
target: /etc/nginx/conf.d
read_only: true
depends_on:
- frontend
- api
- auth
networks:
- default
restart: unless-stopped
frontend:
build:
context: ./frontend
args:
# always add the trailing slash!
VITE_RUEDER_BASE_URL_LOGIN: "/"
VITE_RUEDER_BASE_URL_API: "/api/v1/"
VITE_RUEDER_BASE_URL_IMGPROXY: "https://cdn.whuz.de/imgproxy/"
image: rueder3-frontend-prod
networks:
- default
restart: unless-stopped
api:
build:
context: ./backend
dockerfile: ./docker/api/Dockerfile
image: rueder3-api-prod
env_file:
- ./config/rueder-prod.env
depends_on:
- db
- auth
networks:
- default
- db
restart: unless-stopped
worker:
build:
context: ./backend
dockerfile: ./docker/worker/Dockerfile
image: rueder3-worker-prod
env_file:
- ./config/rueder-prod.env
depends_on:
- db
networks:
- db
restart: unless-stopped
db:
image: docker.io/library/postgres:13.6-alpine
environment:
# this must be the same as in ./backend/config/database.yml.
# if you want to override it you should bind mount to /app/database.yml instead of changing it there!
POSTGRES_DB: rueder_production
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- type: volume
source: db
target: /var/lib/postgresql/data
networks:
- db
restart: unless-stopped
auth:
image: docker.io/tarent/loginsrv:1.3.0
env_file:
- ./config/rueder-prod.env
depends_on:
- authbackend
networks:
- default
- authbackend
restart: unless-stopped
authbackend:
build:
context: ./backend
dockerfile: ./docker/authbackend/Dockerfile
image: rueder3-authbackend-prod
env_file:
- ./config/rueder-prod.env
depends_on:
- db
networks:
- authbackend
- db
restart: unless-stopped
feedfinder:
build:
context: ./backend
dockerfile: ./docker/feedfinder/Dockerfile
image: rueder3-feedfinder-prod
env_file:
- ./config/rueder-prod.env
networks:
- default
restart: unless-stopped
volumes:
db:
networks:
default:
db:
authbackend: