-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
56 lines (51 loc) · 1.6 KB
/
docker-compose-dev.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
# SPDX-License-Identifier: AGPL-3.0-only
# ████████████████████████████████████████████████
# █─▄▄▄─█▄─██─▄█▄─▄█▄─▀─▄█▄─▄─▀█▄─█─▄█─▄─▄─█▄─▄▄─█
# █─██▀─██─██─███─███▀─▀███─▄─▀██▄─▄████─████─▄█▀█
# ▀───▄▄▀▀▄▄▄▄▀▀▄▄▄▀▄▄█▄▄▀▄▄▄▄▀▀▀▄▄▄▀▀▀▄▄▄▀▀▄▄▄▄▄▀
# https://github.com/QuixByte/qb/blob/main/LICENSE
# (c) Copyright 2023 The QuixByte Authors
version: "3.8"
services:
qb-db:
image: postgres
restart: always
environment:
PGDATA: /var/lib/postgresql/data
POSTGRES_PASSWORD: quixbyte
volumes:
- db_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
qb-cache:
image: redis
qb-proxy:
build:
context: .
dockerfile: ./qb-proxy/dev.Dockerfile
links:
- "qb-backend"
- "qb-frontend"
ports:
- "8080:8080"
qb-frontend:
build:
context: .
dockerfile: ./qb-frontend/dev.Dockerfile
volumes:
- ./:/app
qb-backend:
build:
context: .
dockerfile: ./qb-backend/dev.Dockerfile
args:
FEATURES: postgres
environment:
REDIS_URL: redis://qb-cache
DATABASE_URL: postgres://qb:qb@qb-db/qb
links:
- "qb-db"
- "qb-cache"
volumes:
- ./:/app
volumes:
db_data: