Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- cassandra00:
- restart: always
- image: cassandra:2.1.20
- volumes:
- - ./db/casdata:/var/lib/cassandra
- ports:
- - 7000:7000
- - 7001:7001
- - 7199:7199
- - 9042:9042
- - 9160:9160
- environment:
- - CASSANDRA_RPC_ADDRESS=127.0.0.1
- - CASSANDRA_BROADCAST_ADDRESS=127.0.0.1
- db:
- restart: always
- build: ./db
- environment:
- POSTGRES_USER: patientplatypus
- POSTGRES_PASSWORD: Fvnjty0b
- POSTGRES_DB: zennify
- expose:
- - "5432"
- ports:
- - 5432:5432
- volumes:
- - ./db/pgdata:/var/lib/postgresql/data
- app:
- restart: always
- build:
- context: .
- dockerfile: Dockerfile
- command: bash -c 'while !</dev/tcp/db/5432; do sleep 10; done; realize start --run'
- # command: bash -c 'while !</dev/tcp/db/5432; do sleep 10; done; go run main.go'
- ports:
- - 8000:8000
- depends_on:
- - db
- - cassandra00
- links:
- - db
- - cassandra00
- volumes:
- - ./:/go/src/github.com/patientplatypus/webserver/
Add Comment
Please, Sign In to add comment