HUB
Sign inSign up

afi4711/vz

By afi4711

•Updated almost 5 years ago

volkszaehler image

Image
0

397

afi4711/vz repository overview

⁠docker-compose.yml for

Security option may be deleted.

1. armv7 (raspberry pi)

version: '3'
services:

  database:
    image: hypriot/rpi-mysql
    environment:
      MYSQL_DATABASE: volkszaehler
      MYSQL_USER: vz
      MYSQL_PASSWORD: demo
      MYSQL_ROOT_PASSWORD: admin_demo
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    networks:
    - volkszaehler

  volkszaehler:
    image: afi4711/vz
    ports:
    - 8080:8080
    security_opt:
    - seccomp=unconfined
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    # NOTE: The init command will only work once the database is fully up and running.
    #       By putting restart: always docker-compose will retry starting this container
    #       and finally complete the database setup sequence.
    command: sh -c "
      sed -i s/localhost/database/ /vz/etc/config.yaml &&
      sed -i s/vz_admin/root/ /vz/etc/config.yaml &&
      sleep 1 &&
      (/vz/bin/doctrine orm:schema-tool:update --force || /vz/bin/doctrine orm:schema-tool:create) &&
      /vz/vendor/bin/ppm start -c /vz/etc/middleware.json --static-directory /vz/htdocs --cgi-path=/usr/local/bin/php"
    links:
    - database
    depends_on:
    - database
    networks:
    - volkszaehler
    restart: always

  push-server:
    image: afi4711/vz
    ports:
    - 5582:5582
    - 8082:8082
    security_opt:
    - seccomp=unconfined
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    command: sh -c "
      sed -i s/localhost/database/ /vz/etc/config.yaml &&
      /vz/bin/push-server"
    links:
    - database
    depends_on:
    - database
    networks:
    - volkszaehler
    restart: always

networks:
  volkszaehler:

2. amd64

services:

  database:
    image: mariadb
    environment:
      MYSQL_DATABASE: volkszaehler
      MYSQL_USER: vz
      MYSQL_PASSWORD: demo
      MYSQL_ROOT_PASSWORD: admin_demo
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    networks:
    - volkszaehler

  volkszaehler:
    image: afi4711/vz
    ports:
    - 8080:8080
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    # NOTE: The init command will only work once the database is fully up and running.
    #       By putting restart: always docker-compose will retry starting this container
    #       and finally complete the database setup sequence.
    command: sh -c "
      sed -i s/localhost/database/ /vz/etc/config.yaml &&
      sed -i s/vz_admin/root/ /vz/etc/config.yaml &&
      sleep 1 &&
      (/vz/bin/doctrine orm:schema-tool:update --force || /vz/bin/doctrine orm:schema-tool:create) &&
      /vz/vendor/bin/ppm start -c /vz/etc/middleware.json --static-directory /vz/htdocs --cgi-path=/usr/local/bin/php"
    links:
    - database
    depends_on:
    - database
    networks:
    - volkszaehler
    restart: always

  push-server:
    image: afi4711/vz
    ports:
    - 5582:5582
    - 8082:8082
    command: sh -c "
      sed -i s/localhost/database/ /vz/etc/config.yaml &&
      /vz/bin/push-server"
    volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    links:
    - database
    depends_on:
    - database
    networks:
    - volkszaehler
    restart: always

networks:
  volkszaehler:

Tag summary

Content type

Image

Digest

Size

276.9 MB

Last updated

almost 5 years ago

docker pull afi4711/vz:amd64