-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yml
124 lines (112 loc) · 2.8 KB
/
docker-compose.development.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: "3.7"
services:
# Outpost app
outpost:
env_file: .env.outpost
image: "outpost:development"
container_name: greenwich-outpost
init: true
depends_on:
- postgres
build:
context: ${OUTPOST_CODE_PATH}
target: development
ports:
- ${OUTPOST_PORT}:3000
volumes:
- ${OUTPOST_CODE_PATH}:/app:cached
environment:
PROJECT_NAME: ${PROJECT_NAME}
PUMA_WORKERS: 0
RAILS_MAX_THREADS: 5
RAILS_TIMEOUT: 8000
networks:
- greenwich_external_network
- greenwich_internal_network
# Outpost API
outpost-api:
env_file: .env.outpost-api
image: "outpost-api:development"
container_name: greenwich-outpost-api
depends_on:
- mongo
build:
context: ${OUTPOST_API_CODE_PATH}
target: development
ports:
- ${OUTPOST_API_PORT}:3001
volumes:
- ${OUTPOST_API_CODE_PATH}:/app:cached
environment:
NODE_ENV: development
networks:
- greenwich_external_network
- greenwich_internal_network
# Scout
scout:
env_file: .env.scout
image: "scout:development"
container_name: greenwich-scout
stdin_open: true
build:
context: ${SCOUT_CODE_PATH}
target: development
ports:
- ${SCOUT_PORT}:3000
volumes:
- ${SCOUT_CODE_PATH}:/app:cached
environment:
NODE_ENV: development
REACT_APP_API_HOST: http://localhost:${OUTPOST_API_PORT}/api/v1
REACT_APP_FILTERS_DATASOURCE: http://localhost:${OUTPOST_PORT}/api/v1
networks:
- greenwich_external_network
- greenwich_internal_network
# Databases
postgres:
image: postgres:13.7-alpine
container_name: greenwich-db-postgres
environment:
POSTGRES_USER: ${POSTGRES_DB_USER}
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
ports:
- 5432:5432
volumes:
- greenwich-postgres-volume:/var/lib/postgresql/data
networks:
- greenwich_internal_network
- greenwich_external_network
mongo:
image: mongo:6
container_name: greenwich-db-mongo
ports:
- 27017:27017
volumes:
- greenwich-mongo-volume:/data/db
networks:
- greenwich_internal_network
- greenwich_external_network
# Server
# nginx:
# image: "outpost-nginx:development"
# container_name: svr-nginx
# build:
# context: ./
# dockerfile: ./environment/containers/nginx/Dockerfile
# target: development
# depends_on:
# - outpost
# tty: true
# ports:
# - 80 #ephemeral port vs 80:80
# volumes:
# - ./environment/artifacts/nginx/:/var/log/nginx:cached
# networks:
# - greenwich_external_network
volumes:
greenwich-postgres-volume:
greenwich-mongo-volume:
networks:
greenwich_external_network:
greenwich_internal_network:
internal: true