forked from waggle-sensor/sage-ecr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (56 loc) · 1.44 KB
/
docker-compose.yaml
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
version: '3.7'
# to start this enviornment with a jenkins instance, use run.sh instead of this docker-compose file directly
services:
sage-ecr:
image: waggle/sage-ecr:latest
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
ports:
- "5000:5000"
volumes:
- ${PWD}:/usr/src/app # for development only
restart: always
env_file: mysql.env
networks:
- sage-ecr
environment:
AUTH_METHOD: ${AUTH_METHOD}
tokenInfoEndpoint: ${SageTokenInfoEndpoint}
tokenInfoUser: ${SageTokenInfoUser}
tokenInfoPassword: ${SageTokenInfoPassword}
JENKINS_SERVER: ${JENKINS_SERVER}
JENKINS_USER: ecrdb
JENKINS_TOKEN: ${JENKINS_TOKEN}
DOCKER_REGISTRY_PASSWORD: ${DOCKER_REGISTRY_PASSWORD}
DOCKER_REGISTRY_URL: "registry.local:5002"
ADD_USER: ${ADD_USER}
S3_ENDPOINT: ${S3_ENDPOINT}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: ${S3_BUCKET}
S3_FOLDER: ${S3_FOLDER}
db:
image: mysql:8.0.20
env_file: mysql.env
volumes:
- ${PWD}/schema.sql:/docker-entrypoint-initdb.d/init.sql
- sage-ecr-db:/var/lib/mysql
networks:
- sage-ecr
cap_add:
- SYS_NICE # CAP_SYS_NICE
registry.local:
restart: always
image: registry:2.7
ports:
- 5002:5000
networks:
- sage-ecr
volumes:
sage-ecr-db:
networks:
sage-ecr:
name: sage-ecr