-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-dev.yml
executable file
·72 lines (67 loc) · 2.29 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
version: "3.9"
services:
amplrepdev:
build:
context: .
dockerfile: Dockerfile
args:
AA_USER: ${AA_USER}
AA_GROUP: ${AA_GROUP}
UID: ${UID}
GID: ${GID}
# ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS: ${ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS}
# GOOGLE_SECRET_KEY: ${GOOGLE_SECRET_KEY}
# GLOBUS_SECRET_KEY: ${GLOBUS_SECRET_KEY}
# ACCOUNT_DEFAULT_HTTP_PROTOCOL: ${ACCOUNT_DEFAULT_HTTP_PROTOCOL}
# SECURE_SSL_REDIRECT: ${SECURE_SSL_REDIRECT}
# DB_URI_SECRET: ${DB_URI_SECRET}
# S3_FILE_DOWNLOADS: ${S3_FILE_DOWNLOADS}
# AWS_PROFILE_NAME: ${AWS_PROFILE_NAME}
# S3_DOWNLOADS_BUCKET_PATH: ${S3_DOWNLOADS_BUCKET_PATH}
image: genepattern/amplicon-repo:${AMPLICON_ENV}
container_name: ${CONTAINER_NAME}
restart: always
privileged: true
# .env is not need to be specified, all the variales will be set as environment parameters in the container
# however if you specify .env then you can see all the variables if you do docker-compose -f docker-compose-dev.yml config
env_file: .env
environment:
- AA_USER=${AA_USER}
- AA_GROUP=${AA_GROUP}
- UID=${UID}
- GID=${GID}
- AMPLICON_ENV=${AMPLICON_ENV}
- AMPLICON_ENV_PORT=${AMPLICON_ENV_PORT}
- ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS=${ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS}
- GOOGLE_SECRET_KEY=${GOOGLE_SECRET_KEY}
- GLOBUS_SECRET_KEY=${GLOBUS_SECRET_KEY}
- ACCOUNT_DEFAULT_HTTP_PROTOCOL=${ACCOUNT_DEFAULT_HTTP_PROTOCOL}
- SECURE_SSL_REDIRECT=${SECURE_SSL_REDIRECT}
- DB_URI_SECRET=${DB_URI_SECRET}
- S3_FILE_DOWNLOADS=${S3_FILE_DOWNLOADS}
- AWS_PROFILE_NAME=${AWS_PROFILE_NAME}
- S3_DOWNLOADS_BUCKET_PATH=${S3_DOWNLOADS_BUCKET_PATH}
- CONTAINER_NAME=${CONTAINER_NAME}
ports:
- '${AMPLICON_ENV_PORT}:8000'
volumes:
- ${PWD}/.aws:/tmp/.aws:ro
- ${PWD}/logs:/logs
# might want to mount the temp files on the local machine
- ${PWD}/tmp:/tmp
- ${PWD}/.git:/srv/.git
# mount your code
- ${PWD}:/srv/:rw
user: "${UID}:${GID}"
depends_on:
- mongodb
links:
- mongodb
mongodb:
image: mongo:4
volumes:
- ${PWD}/data:/data/db
ports:
- '27017:27017'
networks:
default: