SHARE
TWEET

docker-compose

cimud Sep 17th, 2019 205 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.1'
  2. networks:
  3.   surelintas:
  4.     driver: bridge
  5. services:
  6.   db:
  7.     image: postgres:alpine
  8.     restart: always
  9.     environment:
  10.       POSTGRES_USER: oa
  11.       POSTGRES_PASSWORD: oa
  12.       PGDATA: /data
  13.     command: postgres -c 'max_connections=5000'
  14.     volumes:
  15.      - /home/surelintas/oa/data/psql:/data
  16.       - /home/surelintas/oa/data/raw:/data-raw
  17.     ports:
  18.      - 5432:5432
  19.     networks:
  20.      - surelintas
  21.   migrate:
  22.     image: migrate/migrate
  23.     environment:
  24.       DB_URL: postgres://oa:oa@db:5432/oa?sslmode=disable
  25.     command: -path /migrations -database "postgres://oa:oa@db:5432/oa?sslmode=disable" up
  26.     volumes:
  27.      - ./data/raw/sql:/migrations
  28.     networks:
  29.      - surelintas
  30.   redis:
  31.     restart: always
  32.     image: redis
  33.     networks:
  34.      - surelintas
  35.   backend:
  36.     restart: always
  37.     depends_on:
  38.      - db
  39.       - redis
  40.     environment:
  41.       DB_HOST: db
  42.       DB_PORT: 5432
  43.       DB_NAME: oa
  44.       DB_USER: oa
  45.       DB_PASS: oa
  46.       REDIS_HOST: redis
  47.       REDIS_PORT: 6379
  48.       SMTP_PORT: 465
  49.       SMTP_HOST: smtp.ub.ac.id
  50.       SMTP_USER: username@ub.ac.id
  51.       SMTP_PASS: password
  52.       SMTP_SENDER: username@ub.ac.id
  53.       DOMAIN: oa.ub.ac.id
  54.     image: docker.dev.citra.digital/cdl/oa/oa-backend-unibraw-v1:prod-20190412-4409
  55.     volumes:
  56.      - ./config.json:/root/config.json
  57.     networks:
  58.      - surelintas
  59.   frontend:
  60.     restart: always
  61.     depends_on:
  62.      - backend
  63.     image: docker.dev.citra.digital/cdl/oa/oa-frontend-unibraw-v1:prod-20190412-4409
  64.     networks:
  65.      - surelintas
  66.   envoy:
  67.     image: envoyproxy/envoy-alpine:36f39c746eb7d03b762099b206403935b11972d8
  68.     volumes:
  69.      - ./envoy.yaml:/etc/envoy/envoy.yaml
  70.       - ./certs:/certs
  71.     restart: always
  72.     command: envoy -c /etc/envoy/envoy.yaml
  73.     ports:
  74.      - 80:80
  75.       - 443:443
  76.     networks:
  77.      - surelintas
  78.  
  79.   filebeat:
  80.     build: ./filebeat
  81.     hostname: filebeat_oa.ub.ac.id
  82.     volumes:
  83.      - "/home/surelintas/oa/filebeat_data:/usr/share/filebeat/data:rw"
  84.       - "/var/lib/docker/containers:/usr/share/filebeat/dockerlogs:ro"
  85.       - "/var/run/docker.sock:/var/run/docker.sock"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top