-
Notifications
You must be signed in to change notification settings - Fork 5
/
test-cert-docker-compose.yaml
39 lines (39 loc) · 1.08 KB
/
test-cert-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
# 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 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: