forked from NLeSC/nuxt-apollo-hasura
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-production.yml
executable file
·50 lines (47 loc) · 1.39 KB
/
docker-compose-production.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
# Run in production with
# $ docker-compose -f docker-compose.yml -f docker-compose-production.yml up -d
version: '3.6'
services:
app:
build: ./
container_name: erd-app
working_dir: /usr/src/app
depends_on:
- postgres
- hasura
- upload_server
- xenonflow
ports:
- 3000:3000
restart: always
environment:
HOST: 0.0.0.0
NUXT_XENON_API_KEY: '${XENON_API_KEY}'
NUXT_WEBAPP_PORT: '${WEBAPP_PORT}'
NUXT_WEBAPP_HOST: '${WEBAPP_HOST}'
NUXT_WEBAPP_PROTOCOL: '${WEBAPP_PROTOCOL}'
networks:
default:
ipv4_address: 172.26.0.30
upload_server:
build: ./upload-server
container_name: erd-upload-server
command: [yarn, start]
restart: always
volumes:
- ${ERD_ETL_PATH}/upload:/usr/src/app/cwl_files
working_dir: /usr/src/app
xenonflow:
image: xenonflow
container_name: erd-xenonflow
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${ERD_ETL_PATH}:${ERD_ETL_PATH}
environment:
# cwltool will use this path to mount a volume with docker itself, but
# because we mount the host's docker socket, the container will be a sibling
# and thus use the path on the host
TMPDIR: '${ERD_ETL_PATH}/tmp' # This path must already exist on host!!
XENONFLOW_FILES: '${ERD_ETL_PATH}'
DOCKER_NETWORK: '${DOCKER_NETWORK}'