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