added booking details api endpoint
[laas.git] / 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             - laas-static:/static:ro
22             - laas-media:/media
23         depends_on:
24             - web
25
26     web:
27         image: opnfv/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             - laas-static:/static
37             - laas-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             - laas-data:/var/lib/postgresql/data
48
49     rabbitmq:
50         restart: always
51         image: rabbitmq
52         container_name: rm01
53           #env_file: config.env
54         volumes:
55           - ./config/rabbitmq:/etc/rabbitmq
56         ports:
57             - "5672:5672"
58
59     worker:
60         image: opnfv/laas-celery:latest
61         restart: always
62         env_file: config.env
63         links:
64             - postgres
65             - rabbitmq
66 volumes:
67     laas-media:
68     laas-static:
69     laas-data:
70         external: true