-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexample-docker-compose.yaml
63 lines (63 loc) · 1.98 KB
/
example-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
# docker-compose -f ./example-docker-compose.yaml up
version: '2.2'
x-net:
&net
networks:
- main
services:
fakeservices.datajoint.io:
<<: *net
image: datajoint/nginx:v0.2.6
environment:
## Supply configs in the convention ADD_{service}_{config}
## Example database
- ADD_db_ENDPOINT=db:3306
- ADD_db_TYPE=DATABASE
## Example REST API
- ADD_pharus_ENDPOINT=pharus:5000
- ADD_pharus_PREFIX=/api
- ADD_pharus_TYPE=REST
- ADD_pharus_PORT=2500 # optional port change
- ADD_pharus_TARGETPREFIX=/v0 # optional prefix map
## Example S3 with bucket prefix
- ADD_minio_ENDPOINT=minio:9000
- ADD_minio_PREFIX=/datajoint
- ADD_minio_TYPE=MINIO
- ADD_minio_PORT=8000 # optional port change
## Example MinIO Console Browser
- ADD_minioadmin_ENDPOINT=minio:9000
- ADD_minioadmin_TYPE=MINIOADMIN
- ADD_minioadmin_PORT=7000 # optional port change
## Example static file serve
- ADD_zlabbook_PREFIX=/
- ADD_zlabbook_TYPE=STATIC
- ADD_zlabbook_PORT=2000 # optional port change
## Example add certbot
- CERTBOT_HOST=letsencrypt:80
## Example override default domain spec
- SUBDOMAINS=subdomain1
- URL=domain.com
## Example upgrade HTTP -> HTTPS
- HTTPS_PASSTHRU=TRUE
volumes:
## needed only if specifying a custom domain with encryption
- ./nginx/privkey.pem:/etc/letsencrypt/live/fakeservices.datajoint.io/privkey.pem:ro
- ./nginx/fullchain.pem:/etc/letsencrypt/live/fakeservices.datajoint.io/fullchain.pem:ro
ports:
## Expose ports to allow unencrypted and encrypted access
- "80:80"
- "443:443"
- "3306:3306"
db:
<<: *net
image: datajoint/mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=simple
# ports:
# - "3306:3306"
## To persist MySQL data
# volumes:
# - ./mysql/data:/var/lib/mysql
# - ./mysql/my.cnf:/etc/mysql/my.cnf
networks:
main: