forked from Giveth/impact-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
123 lines (116 loc) · 2.44 KB
/
docker-compose-local.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
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
120
121
122
123
services:
qacc-be-graph-ql:
container_name: qacc-be-graph-ql
build: .
profiles:
- server
command: npm run start:docker:locally
environment:
- ENVIRONMENT=local
- LOG_PATH=/usr/src/app/logs/qacc.log
- GRAPHQL_MODE=true
restart: always
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs:/usr/src/app/logs
networks:
- qacc
ports:
- '4001:4000'
qacc-be:
container_name: qacc-be-job
build: .
profiles:
- server
command: npm run start:docker:locally
environment:
- ENVIRONMENT=local
- LOG_PATH=/usr/src/app/logs/qacc.log
- JOB_MODE=true
restart: always
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs:/usr/src/app/logs
networks:
- qacc
qacc-postgres:
container_name: qacc-postgres
image: postgres:16
profiles:
- server
- database
- local
restart: always
environment:
- POSTGRES_DB=qacc
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db-data:/var/lib/postgresql/data
networks:
- qacc
ports:
- '5442:5432'
qacc-postgres-test:
container_name: qacc-postgres-test
image: postgres:16
profiles:
- test
- database
restart: always
environment:
- POSTGRES_DB=qacc
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db-data-test:/var/lib/postgresql/data
networks:
- qacc
ports:
- '5443:5432'
qacc-redis:
container_name: qacc-redis
image: redis:7-alpine
profiles:
- server
- test
- local
environment:
- REDIS_ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis-data:/data
networks:
- qacc
ports:
- '6379:6379'
qacc-mongo:
container_name: qacc-mongo
image: mongo:latest
profiles:
- server
- database
- local
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- mongo-data:/data/db
networks:
- qacc
ports:
- '27017:27017'
volumes:
db-data:
db-data-test:
redis-data:
mongo-data:
networks:
qacc:
name: qacc-be
external: true