diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-02-20 16:16:15 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-02-20 16:16:15 +0100 |
commit | 3d19ce5671e45b8e06a91cb09065d81e22f9d6fd (patch) | |
tree | e6221f12bdc4c48f5dc919874265633e3709559c /docker-compose.yml | |
download | adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.gz adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.bz2 adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.xz adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.zip |
Initial import
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1f790ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,100 @@ +version: '2' + +services: + data: + image: chsa/adei:latest + command: /bin/false + volumes: + - src:/adei/src + - tmp:/adei/tmp + - sys:/adei/sys + - cfg:/adei/cfg + - mail:/var/spool/mail + - logs:/var/log/apache2 + + mysql: + build: ./mysql + tty: true + restart: always + volumes: + - db:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: adei + MYSQL_DATABASE: adei + MYSQL_USER: adei + MYSQL_PASSWORD: adei + + phpmyadmin: + image: phpmyadmin/phpmyadmin:latest + links: + - mysql:db + ports: + - 8080:80 + + backend: + image: chsa/adei:latest + tty: true + entrypoint: /opt/scripts/run-cron.sh + restart: always + volumes_from: + - data + links: + - mysql:adei-mysql + environment: + - ADEI_ENABLED_SETUPS=autogen + ports: [] + + frontend: + image: chsa/adei:latest + tty: true + entrypoint: /opt/scripts/run-apache.sh + restart: always + volumes_from: + - data + links: + - mysql:adei-mysql + environment: + - ADEI_PORTS=81 + ports: + - 81:80 + + tango_backend: + image: chsa/adei:latest + tty: true + entrypoint: /opt/scripts/run-cron.sh + restart: always + volumes_from: + - data + links: + - mysql:adei-mysql + environment: + - ADEI_ENABLED_SETUPS=tango + - MYSQL_DATABASE=adei_tango + ports: [] + cpu_quota: 10000 + + + tango_frontend: + image: chsa/adei:latest + tty: true + entrypoint: /opt/scripts/run-apache.sh + restart: always + volumes_from: + - data + links: + - mysql:adei-mysql + environment: + - ADEI_SETUP=tango + - ADEI_PORTS=82 + - MYSQL_DATABASE=adei_tango + ports: + - 82:80 + +volumes: + db: + src: + tmp: + cfg: + sys: + mail: + logs: |