summaryrefslogtreecommitdiff
path: root/docker/docker-compose.yml
blob: 209f953217b3b9cbd1abb92286fc52743d26257b (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
version: "3.6"
services:
  spotify_intersect:
    image: spotify_intersect
    container_name: spotify_intersect
    ports:
      - 8000:8000
    build:
      context: ..
      dockerfile: docker/Dockerfile
      #environment:
    networks:
      - database
      - hostnet
    depends_on:
      - track_db
        # - zookeeper
  track_db:
    image: postgresql
    container_name: track_db
    networks:
      - database
    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