-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 983 Bytes
/
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
version: '3.8'
services:
keydb:
image: eqalpha/keydb
container_name: textoria-keydbbhng
ports:
- "6379:6379"
command: keydb-server /etc/keydb/keydb.conf --server-threads 4 --requirepass password
postgres:
image: postgres:13
container_name: textoria-postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=textoria
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
back:
container_name: backend
environment:
- KEYDB_URI=$KEYDB_URI
- DATABASE_URL=postgres://postgres:password@postgres:5432/textoria
ports:
- "8000:8000"
build: .
depends_on:
- postgres
- keydb
front:
container_name: frontend
build: https://github.com/textoria/frontend.git
environment:
- BACKEND_URL=http://backend:8000
ports:
- '3000:3000'
depends_on:
- back
volumes:
postgres_data: