summaryrefslogtreecommitdiff
path: root/docker/docker-compose.yml
blob: 0481399ca7352bcbfc563444a6dd2a7b740825e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.6"
services:
  spotify_intersect:
    image: spotify_intersect
    container_name: spotify_intersect
    ports:
        - 8085:8085
    build:
      context: ..
      dockerfile: docker/Dockerfile
      #environment:
    networks:
        - database
        - hostnet
    depends_on:
        - track_db
    links: 
        - "track_db:db"
          #volumes:
          #-  /etc/ssl/certs:/etc/ssl/certs:ro
        # - zookeeper
  track_db:
    image: postgres
    container_name: track_db
    networks:
        - database
    ports:
        - 5432:5432
    environment:
      POSTGRES_PASSWORD: example

    volumes: 
        - ./data:/var/lib/postgresql/data
      #track_db:
      #image: noria
      # build:
      #context: ..
      #dockerfile: docker/noria/Dockerfile
      #volumes:
      #- db:/srv/noria
      #networks:
      #- database
      # depends_on:
      #- zookeeper
        #volumes:
        #db: {}
        #zookeeper:
        #image: 'bitnami/zookeeper:latest'
        #networks:
        #- database
        #environment:
        #ALLOW_ANONYMOUS_LOGIN: "yes"

networks:
  database:
     driver: bridge
  hostnet:
     external: true
     name: frontend