forked from Nanocloud/nanocloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-pr.yml
71 lines (64 loc) · 1.39 KB
/
docker-compose-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '2'
services:
backend-PRPORTS:
build:
context: ./
dockerfile: Dockerfile
image: nanocloud/backend
volumes:
- static-PRPORTS:/opt/back/assets/dist
env_file:
- config.env
networks:
- nanocloud
depends_on:
- postgres-PRPORTS
restart: always
container_name: backend-PRPORTS
frontend-PRPORTS:
build:
context: ./assets
dockerfile: Dockerfile
image: nanocloud/frontend
volumes:
- static-PRPORTS:/opt/dist
networks:
- nanocloud
container_name: frontend-PRPORTS
proxy-PRPORTS:
build: ./proxy
image: nanocloud/proxy
ports:
- PRPORTS:443
depends_on:
- backend-PRPORTS
volumes:
- ./proxy/nginx.pr.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- nanocloud
restart: always
container_name: proxy-PRPORTS
postgres-PRPORTS:
image: postgres:9.5.3
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=nanocloud
networks:
- nanocloud
restart: always
container_name: postgres-PRPORTS
guacamole-client-PRPORTS:
build: ./guacamole-client
image: nanocloud/guacamole-client
networks:
- nanocloud
restart: always
container_name: guacamole-client-PRPORTS
networks:
nanocloud:
driver: bridge
volumes:
static-PRPORTS:
driver: local
plaza:
driver: local