docker-compose.yml 1.17 KB
Newer Older
1
2
version: '3'

Guilhem Saurel's avatar
prod    
Guilhem Saurel committed
3
volumes:
Guilhem Saurel's avatar
Guilhem Saurel committed
4
5
  srv:
  sql:
Guilhem Saurel's avatar
prod    
Guilhem Saurel committed
6

7
services:
Guilhem Saurel's avatar
Guilhem Saurel committed
8
  postgres:
Guilhem Saurel's avatar
Guilhem Saurel committed
9
    image: postgres:10-alpine
Guilhem Saurel's avatar
Guilhem Saurel committed
10
11
12
    restart: unless-stopped
    env_file:
      - .env
Guilhem Saurel's avatar
Guilhem Saurel committed
13
14
15
16
17
    volumes:
      - "sql:/var/lib/postgresql/data"
  memcached:
    image: memcached:alpine
    restart: unless-stopped
18
  app:
Guilhem Saurel's avatar
Guilhem Saurel committed
19
    image: memmos.laas.fr:5000/gepetto/dashboard:master
Guilhem Saurel's avatar
Guilhem Saurel committed
20
    build: .
Guilhem Saurel's avatar
prod    
Guilhem Saurel committed
21
    restart: unless-stopped
22
    volumes:
Guilhem Saurel's avatar
Guilhem Saurel committed
23
      - "srv:/srv"
24
25
      - /srv/dashboard/repositories:/srv/dashboard/repositories
      - /srv/dashboard/robotpkg:/srv/dashboard/robotpkg
26
      - /var/run/docker.sock:/var/run/docker.sock
Guilhem Saurel's avatar
ssmtp    
Guilhem Saurel committed
27
      - /etc/ssmtp:/etc/ssmtp
28
29
    env_file:
      - .env
30
31
32
    environment:
      - DB=postgres
      - MEMCACHED=True
Guilhem Saurel's avatar
Guilhem Saurel committed
33
    networks:
Guilhem Saurel's avatar
Guilhem Saurel committed
34
      - web
Guilhem Saurel's avatar
Guilhem Saurel committed
35
36
      - default
    labels:
Guilhem Saurel's avatar
Guilhem Saurel committed
37
      traefik.enable: "true"
Guilhem Saurel's avatar
Guilhem Saurel committed
38
      traefik.http.routers.rainboard-app.rule: "Host(`rainboard.${DOMAIN_NAME:-localhost}`)"
Guilhem Saurel's avatar
prod    
Guilhem Saurel committed
39
40
41
42
  nginx:
    image: nim65s/ndh:nginx
    restart: unless-stopped
    volumes:
Guilhem Saurel's avatar
Guilhem Saurel committed
43
      - "srv:/srv"
Guilhem Saurel's avatar
Guilhem Saurel committed
44
    networks:
Guilhem Saurel's avatar
Guilhem Saurel committed
45
      - web
Guilhem Saurel's avatar
Guilhem Saurel committed
46
    labels:
Guilhem Saurel's avatar
Guilhem Saurel committed
47
      traefik.enable: "true"
Guilhem Saurel's avatar
Guilhem Saurel committed
48
      traefik.http.routers.rainboard-ngx.rule: "Host(`rainboard.${DOMAIN_NAME:-localhost}`) && PathPrefix(`/static`, `/media`)"
Guilhem Saurel's avatar
Guilhem Saurel committed
49
50

networks:
Guilhem Saurel's avatar
Guilhem Saurel committed
51
  web:
Guilhem Saurel's avatar
Guilhem Saurel committed
52
    external: true