Merge "Bookings no longer default to 0 days"
[pharos-tools.git] / dashboard / docker-compose.yml
1 ---
2 ##############################################################################
3 # Copyright (c) 2016 Max Breitenfeldt and others.
4 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11 version: '3'
12 services:
13     nginx:
14         restart: always
15         image: nginx:latest
16         container_name: ng01
17         ports:
18             - "80:80"
19         volumes:
20             - ./config/nginx:/etc/nginx/conf.d
21             - pharos-static:/static:ro
22             - pharos-media:/media
23         depends_on:
24             - web
25
26     web:
27         image: opnfv/pharos-tools-laas-dashboard:latest
28         restart: always
29         container_name: dg01
30         depends_on:
31             - postgres
32         links:
33             - postgres
34         env_file: config.env
35         volumes:
36             - pharos-static:/static
37             - pharos-media:/media
38         expose:
39             - "8000"
40
41     postgres:
42         restart: always
43         image: postgres:10
44         container_name: ps01
45         env_file: config.env
46         volumes:
47             - pharos-data:/var/lib/postgresql/data
48
49     rabbitmq:
50         image: rabbitmq
51         container_name: rm01
52         env_file: config.env
53         ports:
54             - "5672:5672"
55
56     worker:
57         image: opnfv/pharos-tools-laas-celery:latest
58         restart: always
59         env_file: config.env
60         links:
61             - postgres
62             - rabbitmq
63 volumes:
64     pharos-media:
65     pharos-static:
66     pharos-data:
67         external: true