-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
135 lines (119 loc) · 3.51 KB
/
docker-compose.dev.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
124
125
126
127
128
129
130
131
132
133
134
135
x-environment-variables:
&default-environment
API_PREFIX: "/palpatine"
DELEGATED_STORAGE_RATE_LIMIT: 5
DELEGATED_STORAGE_RATE_LIMIT_WINDOW: 30000
THUMBOR_SERVICE: http://localhost:8888
NGINX_SERVICE: http://host.docker.internal:8080
IMAGE_SERVICE: http://localhost:3001
NGINX_INGRESS: http://localhost:8080
VERSION: 0.0.1
NAMESPACES: CMS,FORMS,DEV
VALID_MIMETYPES: image/png,image/jpeg,application/pdf,image/jpg,image/webp,image/svg+xml
DEV_ENV: true
# S3 BACKUP :
DELEGATED_STORAGE_READINESS_CHECK: /minio/health/live
DELEGATED_STORAGE_HOST: http://localhost:9000
DELEGATED_STORAGE_METHOD: S3
S3_ENDPOINT: localhost
S3_PORT: 9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
S3_BUCKET_NAME: media
DUMP_FOLDER_PATH: /dumps
REDIS_SERVICE: localhost
HEALTHCHECK_ROUTE: /readiness-check
PAYLOAD_MAX_SIZE: "10mb"
BASE_TIMEOUT_MS: 1000
ORIGINS_ALLOWED: localhost,*
METHODS_ALLOWED: GET,POST
USE_STRIPMETADATA: true
TMP_FILES_PATH: './images'
services:
redis:
image: bitnami/redis:7.0.15-debian-12-r20
container_name: redis_server
command: redis-server --protected-mode no --dir /dumps
ports:
- '6379:6379'
volumes:
- ./local/redis/dumps:/dumps
networks:
- redis_net
redisinsight:
image: redis/redisinsight:latest
container_name: redisinsight
ports:
- '5540:5540'
networks:
- redis_net
depends_on:
- redis
minio:
image: minio/minio
ports:
- 9000:9000
- 8900:8900
environment:
MINIO_ROOT_USER: 'minioadmin'
MINIO_ROOT_PASSWORD: 'minioadmin'
command: 'minio server /data/minio --console-address ":8900"'
volumes:
- pv-minio:/data/minio
networks:
- media_network
images-provider:
build:
context: src/api
dockerfile: Dockerfile.dev
ports:
- 3001:3001
networks:
- media_network
- redis_net
volumes:
- ./local/redis/dumps:/dumps
environment:
<<: *default-environment
THUMBOR_SERVICE: http://thumbor:8888
NGINX_SERVICE: http://nginx:8080
IMAGE_SERVICE: http://images-provider:3001
NGINX_INGRESS: http://localhost:8080
DELEGATED_STORAGE_HOST: http://minio:9000
REDIS_SERVICE: redis
S3_ENDPOINT: minio
MEDIA_TOKEN: token
healthcheck:
test: ["CMD-SHELL", "wget --spider --quiet http://images-provider:3001$$API_PREFIX/readiness-check || exit 1"]
interval: 10s
timeout: 7s
retries: 5
nginx-purge:
image: emcniece/nginx-cache-purge:1.13-alpine
ports:
- 8081:8081
volumes:
- ./local/nginx/nginx-purge.conf:/etc/nginx/nginx.conf
networks:
- media_network
depends_on:
- images-provider
nginx:
image: bitnami/nginx:latest
ports:
- 8080:8080
volumes:
- ./local/nginx/nginx.conf:/opt/bitnami/nginx/conf/nginx.conf
networks:
- media_network
depends_on:
- images-provider
volumes:
pv-minio:
minio:
driver: local
networks:
redis_net:
driver: bridge
media_network:
driver: bridge