-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.19 KB
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
# qcs v1.0.4
version: "3.7"
networks:
qcs_subnet:
driver: bridge
ipam:
config:
- subnet: "172.20.50.0/24"
gateway: "172.20.50.1"
volumes:
qcs-db-data:
qcs-rdb-data:
services:
qcs-db:
container_name: qcs-db
build:
context: .
dockerfile: Dockerfile.database
networks:
- qcs_subnet
ports:
- "33332:5432"
environment:
POSTGRES_USER: quickcerts
POSTGRES_PASSWORD: password
POSTGRES_DB: quickcerts
volumes:
- qcs-db-data:/var/lib/postgresql/data
restart: unless-stopped
qcs-cache:
container_name: qcs-cache
build:
context: .
dockerfile: Dockerfile.redis
networks:
- qcs_subnet
ports: # You can remove this if you don't need to access redis from outside the container
- "33334:6379"
volumes:
- qcs-rdb-data:/data
restart: unless-stopped
qcs-server:
container_name: qcs-server
build:
context: .
dockerfile: Dockerfile.server
networks:
- qcs_subnet
ports:
- "33333:33333"
depends_on:
- qcs-db
- qcs-cache
environment:
DB_HOST: qcs-db
DB_PORT: 5432
restart: unless-stopped