-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.yml
96 lines (90 loc) · 2.44 KB
/
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
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
version: "3.7"
volumes:
redis-data:
minio-data:
export-node-modules:
postgres-data:
services:
db:
container_name: litefarm-db
image: postgres:13
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: "postgres"
volumes:
- ./initdb.d:/docker-entrypoint-initdb.d
- postgres-data:/var/lib/postgresql/data
minio:
image: minio/minio:RELEASE.2023-06-09T07-32-12Z
restart: unless-stopped
ports:
- 9000:9000
- 9090:9090
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER=myminioadmin
- MINIO_ROOT_PASSWORD=myminioadmin
- CONSOLE_ADDRESS=9090
command: server /data --console-address ":9090"
create_minio_bucket:
image: minio/mc:RELEASE.2023-06-06T13-48-56Z
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 myminioadmin myminioadmin;
if ! /usr/bin/mc ls myminio/minio-dev 2>/dev/null; then
/usr/bin/mc mb myminio/minio-dev;
/usr/bin/mc anonymous set public myminio/minio-dev;
else
echo 'Successfully confirmed the 'minio-dev' bucket is in place';
fi"
redis:
image: redis:7.0-alpine
restart: unless-stopped
command: redis-server --requirepass test --loglevel warning
volumes: # Persisted volume required by bull
- redis-data:/data
ports:
- 6380:6379
profiles:
- export
export:
image: litefarm/node-awscli:0.0.2
restart: unless-stopped
volumes:
- ./packages/api:/packages/api
- ./packages/webapp/public/locales:/packages/webapp/public/locales
- export-node-modules:/packages/api/node_modules
working_dir: /packages/api
entrypoint: ./dev.export.sh
depends_on:
- redis
- minio
environment:
- AWS_ACCESS_KEY_ID=myminioadmin
- AWS_SECRET_ACCESS_KEY=myminioadmin
- MINIO_ENDPOINT=http://host.docker.internal:9000
- API_URL=http://host.docker.internal:5001
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=test
- REPORT_URL=http://host.docker.internal:3000/render_survey
ports:
- 9229:9229 # for debugging
extra_hosts:
- "host.docker.internal:host-gateway"
profiles:
- export
imaginary:
image: h2non/imaginary:1.2.4
ports:
- 8088:8088
environment:
- PORT=8088
command: >
-concurrency 5
-disable-endpoints form
-key localonlytoken