docker-compose.yml 814 Bytes
Newer Older
1 2
version: '2'
services:
3
  postgres:
4
    image: postgres:9.3
5
  zoe-api:
6 7
    image: zoerepo/zoe-test
    command: python3 zoe-api.py --debug --backend DockerEngine --backend-docker-config-file /etc/zoe/docker.conf --deployment-name compose --master-url tcp://zoe-master:4850 --dbuser postgres --dbhost postgres --dbname postgres
8 9 10 11
    ports:
      - "8080:5001"
    depends_on:
      - postgres
12
  zoe-master:
13
    image: zoerepo/zoe-test
14
    ports:
15
      - "4850:4850"
16 17 18
    volumes:
      - /etc/zoe:/etc/zoe
      - /opt/zoe-workspaces:/mnt/zoe-workspaces
19
    command: python3 zoe-master.py --debug --backend DockerEngine --backend-docker-config-file /etc/zoe/docker.conf --deployment-name compose --dbuser postgres --dbhost postgres --dbname postgres
20
    depends_on:
21 22 23
      - zoe-api
networks:
  zoe:
24
    driver: bridge