docker-compose.yml 3.07 KB
Newer Older
BAIRE Anthony's avatar
BAIRE Anthony committed
1
# vim:sts=4:sw=4:et:
2 3 4 5 6 7 8 9 10 11 12

version: '2'

networks:
    dev:
        driver: bridge
    sandboxes:
        driver: bridge

services:
  dev-registry:
BAIRE Anthony's avatar
BAIRE Anthony committed
13 14 15 16
    container_name: dev-registry

    build: registry
    #image: allgo/registry
BAIRE Anthony's avatar
BAIRE Anthony committed
17
    user: "$DOCKERUSER"
BAIRE Anthony's avatar
BAIRE Anthony committed
18 19 20 21 22
    ports:
        - "127.0.0.1:8000-8002:8000-8002"

    volumes:
        - "/data/dev/registry:/vol"
CAMPION Sebastien's avatar
CAMPION Sebastien committed
23 24 25 26 27 28 29 30 31 32
        - "./certs:/certs"
    environment:
        REGISTRY_HTTP_TLS_CERTIFICATE: "/certs/server.crt"
        REGISTRY_HTTP_TLS_KEY: "/certs/server.key"
        REGISTRY_AUTH: "token"
        REGISTRY_AUTH_TOKEN_REALM: "http://django:8080/tokens"
        REGISTRY_AUTH_TOKEN_SERVICE: "allgo_registry"
        REGISTRY_AUTH_TOKEN_ISSUER: "allgo_oauth"
        REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: "/certs/server.crt"

BAIRE Anthony's avatar
BAIRE Anthony committed
33

34
  dev-controller:
35
    container_name: dev-controller
BAIRE Anthony's avatar
BAIRE Anthony committed
36

37 38
    build: controller
    #image: allgo/controller
BAIRE Anthony's avatar
BAIRE Anthony committed
39 40

    volumes:
41 42
        - "/data/dev/controller:/vol"
        - "./controller:/opt/allgo-docker"
BAIRE Anthony's avatar
BAIRE Anthony committed
43 44 45 46
        - "/:/vol/host:ro"

    environment:
        ENV:        "dev"
47
        REGISTRY:   "localhost:8002/allgo/dev"
48
        DEBUG:      "1"
BAIRE Anthony's avatar
BAIRE Anthony committed
49

50 51 52 53
    # override default command (to allow running the controller manually with ./shell)
    #command: ["/bin/bash"]
    #tty: true
    #stdin_open: true
BAIRE Anthony's avatar
BAIRE Anthony committed
54

55
    networks: [dev]
56

57
  dev-mysql:
BAIRE Anthony's avatar
BAIRE Anthony committed
58 59 60
    container_name: dev-mysql
    build: mysql
    #image: allgo/mysql
BAIRE Anthony's avatar
BAIRE Anthony committed
61
    user: "$DOCKERUSER"
BAIRE Anthony's avatar
BAIRE Anthony committed
62 63 64 65
    
    volumes:
        - "/data/dev/mysql:/vol"

66 67 68
    networks: [dev]

  dev-ssh:
BAIRE Anthony's avatar
BAIRE Anthony committed
69 70 71 72 73 74
    container_name: dev-ssh

    build: ssh
    #image: allgo/ssh
    
    ports:
75
        - "127.0.0.1:2222:22"
BAIRE Anthony's avatar
BAIRE Anthony committed
76 77 78 79 80 81

    volumes:
        - "/data/dev/ssh:/vol"
        - "./ssh:/opt/allgo-ssh"

    environment:
82
        ENV:        "dev"
BAIRE Anthony's avatar
BAIRE Anthony committed
83

84
    networks: [dev, sandboxes]
BAIRE Anthony's avatar
BAIRE Anthony committed
85

86
  dev-rails:
BAIRE Anthony's avatar
BAIRE Anthony committed
87 88 89 90
    container_name: dev-rails

    build: rails
    #image: allgo/rails
BAIRE Anthony's avatar
BAIRE Anthony committed
91
    user: "$DOCKERUSER"
BAIRE Anthony's avatar
BAIRE Anthony committed
92 93

    ports:
BAIRE Anthony's avatar
BAIRE Anthony committed
94
        - "127.0.0.1:3000:8080"
BAIRE Anthony's avatar
BAIRE Anthony committed
95 96 97 98 99 100 101 102

    volumes:
        - "/data/dev/rails:/vol"
        - "./rails:/opt/allgo"

    environment:
        RAILS_ENV: development

103
    networks: [dev]
BAIRE Anthony's avatar
BAIRE Anthony committed
104 105 106 107

    tty: true
    stdin_open: true

CAMPION Sebastien's avatar
CAMPION Sebastien committed
108 109 110 111 112 113 114 115 116 117 118 119 120
  dev-django:
    container_name: dev-django

    build: django
    #image: allgo/rails
    user: "$DOCKERUSER"

    ports:
        - "127.0.0.1:4000:8080"

    volumes:
        - "/data/dev/django:/vol"
        - "./django:/opt/allgo"
CAMPION Sebastien's avatar
CAMPION Sebastien committed
121
        - "./certs:/certs"
CAMPION Sebastien's avatar
CAMPION Sebastien committed
122 123 124 125 126 127

    networks: [dev]

    tty: true
    stdin_open: true

CAMPION Sebastien's avatar
CAMPION Sebastien committed
128 129 130 131 132 133 134 135
    environment:
        SIGNING_KEY_PATH: "/certs/server.key"
        SIGNING_KEY_TYPE: "RSA"
        SIGNING_KEY_ALG: "RS256"
        ISSUER: "allgo_oauth"
        TOKEN_EXPIRATION: "3600"
        TOKEN_TYPE: "JWT"

BAIRE Anthony's avatar
BAIRE Anthony committed
136

137
  dev-smtpsink:
BAIRE Anthony's avatar
BAIRE Anthony committed
138 139 140 141 142 143 144 145 146 147
    container_name: dev-smtpsink

    build: smtpsink
    #image: allgo/smtpsink
    ports:
        - "127.0.0.1:143:143"

    volumes:
        - "/data/dev/smtpsink:/vol"

148 149 150
    networks: [dev]

  dev-nginx:
BAIRE Anthony's avatar
BAIRE Anthony committed
151 152 153 154 155 156 157 158 159 160
    container_name: dev-nginx

    build: nginx
    ports:
        - "127.0.0.1:80:80"
        - "127.0.0.1:443:443"

    volumes:
        - "/data/dev/nginx:/vol"

161
    networks: [dev]
162 163 164 165 166 167 168 169

  dev-toolbox:
    container_name: dev-toolbox

    build: toolbox

    volumes:
        - "/data/dev/toolbox:/vol"