-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-generator.yml
38 lines (35 loc) · 1.06 KB
/
docker-compose-generator.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
version: "3.6"
##
# This is the compose file only to build the image.
#
# To run the generator after you build this image, just type:
#
# docker-compose -f docker-compose-generator-replicas.yml up -d
#
##
networks:
app:
external: false
name: ${PROJECT_NAME}_default
services:
generator:
#restart: always
build:
context: ./apps
dockerfile: generator/Dockerfile
image: ${PROJECT_NAME}_generator
command: "npm run build"
container_name: ${PROJECT_NAME}_generator
volumes:
- .:/home/node/app
- /home/node/app/apps/generator/node_modules
- /home/node/app/apps/shared/node_modules
- ${STORE_ROOT_PATH}:/media/photos
- ${STORE_THUMBNAIL_PATH}:/media/thumbs
networks:
- app
environment:
- STORE_ROOT_PATH=/media/photos
- STORE_THUMBNAIL_PATH=/media/thumbs
- GENERATOR_CLIENT_HOST=${GENERATOR_CLIENT_HOST}
- GENERATOR_CLIENT_PORT=${GENERATOR_CLIENT_PORT}