-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
56 lines (54 loc) · 2 KB
/
docker-compose.production.yml
File metadata and controls
56 lines (54 loc) · 2 KB
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
version: '3'
services:
client:
build:
context: ./packages/client
dockerfile: ./Dockerfile-production
args:
- server_url=${SERVER_URL:-http://localhost:3000}
command: ['npx', 'serve', '-p', '4000', '--single', './_build']
ports:
- ${CLIENT_PORT:-4000}:4000
restart: always
server:
build:
context: ./packages/server
dockerfile: ./Dockerfile-production
entrypoint: ['sh', 'scripts/setupDevServer.sh']
command: ['node', 'startServer.js']
ports:
- 3000:3000
restart: always
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_DB=${POSTGRES_DB:-dev_db}
- POSTGRES_USER=${POSTGRES_USER:-dev_user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-dev_user_password}
- PUBSWEET_SECRET=${PUBSWEET_SECRET:-superSecretThing}
- SERVER_PORT=${SERVER_PORT:-3000}
- HOSTNAME=${HOSTNAME}
- CLIENT_URL=${CLIENT_URL:-http://0.0.0.0:4000}
- MAILER_SENDER=${MAILER_SENDER:-dev@example.com}
- MAILER_HOSTNAME=${MAILER_HOSTNAME}
- MAILER_PORT=${MAILER_PORT}
- MAILER_USER=${MAILER_USER}
- MAILER_PASSWORD=${MAILER_PASSWORD}
- PASSWORD_RESET_PATH=${PASSWORD_RESET_PATH:-password-reset}
- S3_PROTOCOL=http
- START_YEAR=${START_YEAR}
- END_YEAR=${END_YEAR}
- S3_HOST=filehosting
- S3_PORT=${S3_PORT:-9000}
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID:-nonRootUser}
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY:-nonRootPassword}
- S3_BUCKET=${S3_BUCKET:-uploads}
- S3_CZI_FOLDER_PATH=${S3_CZI_FOLDER_PATH}
volumes:
- ./packages/server/api:/home/node/app/api
- ./packages/server/config:/home/node/app/config
- ./packages/server/controllers:/home/node/app/controllers
- ./packages/server/models:/home/node/app/models
- ./packages/server/rest:/home/node/app/rest
- ./packages/server/scripts:/home/node/app/scripts
- ./packages/server/services:/home/node/app/services