forked from openstad/openstad-image-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.25 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
version: '3.1'
services:
mysql:
image: "mysql:5"
platform: linux/x86_64
environment:
MYSQL_ROOT_PASSWORD: "insecure"
MYSQL_DATABASE: "image"
MYSQL_PASSWORD: "insecure"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
expose:
- "3306"
- "33060"
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- database:/var/lib/mysql
networks:
- database
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
image:
image: ${REGISTRY:-localhost:5001}/${REPOSITORY:-opdrachten/openstad-image}:${VERSION:-latest}
build:
context: .
dockerfile: Dockerfile
environment:
DB_NAME: "image"
DB_USER: "root"
DB_PASSWORD: "insecure"
DB_HOST: "mysql"
DB_PORT: 3306
PORT_IMAGE_SERVER: 3000
IMAGES_DIR: "/app/images"
THROTTLE: true
THROTTLE_CC_PROCESSORS: 4
THROTTLE_CC_PREFETCHER: 20
THROTTLE_CC_REQUESTS: 100
APP_URL: "http://localhost/image"
expose:
- 9999
ports:
- 9999:9999
restart: unless-stopped
networks:
- database
depends_on:
mysql:
condition: service_healthy
volumes:
database:
networks:
database: