Created
February 5, 2019 11:25
-
-
Save unnawut/8ac413dc16c53c03f6f38b1dde7240ed to your computer and use it in GitHub Desktop.
Fast disk IO for omisego/ewallet development environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
postgres: | |
ports: | |
- "5433:5432" | |
ewallet: | |
image: omisegoimages/ewallet-builder:v1.2 | |
environment: | |
DATABASE_URL: postgresql://postgres:password@postgres:5432/ewallet | |
LOCAL_LEDGER_DATABASE_URL: postgresql://postgres:password@postgres:5432/local_ledger | |
EWALLET_SECRET_KEY: <key_here> | |
LOCAL_LEDGER_SECRET_KEY: <key_here> | |
entrypoint: tail -f /dev/null | |
volumes: | |
- ewallet-sync:/app:nocopy | |
ports: | |
- "4000:4000" | |
syncer: | |
image: eugenmayer/unison:2.51.2.1 | |
command: /entrypoint.sh supervisord | |
volumes: | |
- .:/host_sync | |
- ewallet-sync:/app_sync | |
environment: | |
- HOST_VOLUME=/host_sync | |
- APP_VOLUME=/app_sync | |
- UNISON_SRC=/host_sync | |
- UNISON_DEST=/app_sync | |
- UNISON_DIR=/data | |
- UNISON_ARGS=-ignore='Name _build' -ignore='Name .git' -ignore='Name .circleci' -ignore='Name .github' -prefer /host_sync -numericids -auto -batch | |
- UNISON_WATCH_ARGS=-repeat watch | |
- TZ=Asia/Bangkok | |
- LANG=C.UTF-8 | |
- HOME=/root | |
- OWNER_UID=10000 # ewallet's uid on the container | |
- MONIT_ENABLE=true | |
- MONIT_INTERVAL=5 | |
- MONIT_HIGH_CPU_CYCLES=2 | |
precopy: | |
image: eugenmayer/unison:2.51.2.1 | |
command: /entrypoint.sh precopy_appsync | |
volumes: | |
- .:/host_sync | |
- ewallet-sync:/app_sync | |
environment: | |
- HOST_VOLUME=/host_sync | |
- APP_VOLUME=/app_sync | |
- UNISON_SRC=/host_sync | |
- UNISON_DEST=/app_sync | |
- UNISON_DIR=/data | |
- UNISON_ARGS=-ignore='Name _build' -ignore='Name .git' -ignore='Name .circleci' -ignore='Name .github' -prefer /host_sync -numericids -auto -batch | |
- UNISON_WATCH_ARGS=-repeat watch | |
- TZ=Asia/Bangkok | |
- LANG=C.UTF-8 | |
- HOME=/root | |
- OWNER_UID=10000 # ewallet's uid on the container | |
volumes: | |
ewallet-sync: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment