docker-compose.yml 1.16 KB
Newer Older
1
2
3
4
version: '3'
services:
  yafitsv:
    build: ./yafitsv
5
    image: yafitsv:${USER}
6
    ports:
7
     - "${YAFITSV_PORT}:3000"
8
    volumes:
9
10
     - "${YAFITS_FITSDIR}:/home/partemix/dataroot/FITS"
     - "${YAFITS_PNGDIR}:/home/partemix/dataroot/PNG"
11
     - "${YAFITS_OBJDIR}:/home/partemix/dataroot/OBJ"
12
     - "${YAFITS_SAMPDIR}:/home/partemix/dataroot/SAMP"
13
     - "${YAFITS_LOGDIR}:/home/partemix/log"
14
    environment:
15
16
17
18
     - YAFITSS_HOST=yafitss
     - YAFITSS_PORT=4251
     - YAFITSV_HOST=${YAFITSV_HOST}
     - YAFITSV_PORT=${YAFITSV_PORT}
19
     - PORT=3000
20
21
    command: /home/partemix/yafitsv/bin/www > /home/partemix/log/yafitsv.log 2> /home/partemix/log/yafitsv_err.log
    links:
22
     - yafitss
23

24
25
  yafitss:
    build: ./yafitss
26
    image: yafitss:${USER}
27
    ports:
28
     - "${YAFITSS_PORT}:4251"
29
    volumes:
30
31
     - "${YAFITS_FITSDIR}:/home/partemix/dataroot/FITS"
     - "${YAFITS_PNGDIR}:/home/partemix/dataroot/PNG"
32
     - "${YAFITS_OBJDIR}:/home/partemix/dataroot/OBJ"
33
34
     - "${YAFITS_LOGDIR}:/home/partemix/log"
    environment:
35
36
      - YAFITSS_PORT=${YAFITSS_PORT}
      - YAFITSS_MAXIDLE=${YAFITSS_MAXIDLE}
37
    command: python /home/partemix/yafitss/serverWsgi.py --port 4251