-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.85 KB
/
docker-compose.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
version: "3.7"
services:
# Outpost app
outpost:
image: "outpost:development"
container_name: outpost
# use if you just want to keep the container running
# command: ["tail", "-f", "/dev/null"]
# uncomment for 'prod' like env locally
# command: ["bin/bundle", "exec", "puma", "-C", "config/puma.rb"]
init: true
depends_on:
- postgres
- mongo
platform: linux/amd64
build:
context: .
# uncomment for 'prod' like env locally
# NODE_ENV: production
# RAILS_ENV: production
ports:
- 3000:3000
volumes:
- ./:/app:cached
- /app/node_modules
environment:
# uncomment for 'prod' like env locally
# NODE_ENV: production
# RAILS_ENV: production
OFSTED_FEED_API_ENDPOINT: ${OFSTED_FEED_API_ENDPOINT:-https://test-ofsted-feed.stub} # this is not a real url, we just need an env variable set for the stub to work in tests
SHOW_ENV_BANNER: ${SHOW_ENV_BANNER:-outpost docker development}
DB_URI: mongodb://${MONGO_INITDB_USERNAME:-outpost}:${MONGO_INITDB_PASSWORD:-password}@mongo/${MONGO_INITDB_DATABASE:-outpost_api_development}
DATABASE_URL: ${DATABASE_URL:-postgresql://outpost:password@postgres:5432/outpost?}
networks:
- external_network
- internal_network
outpost-api-service:
extends:
file: ./.docker/services/outpost-api-service/outpost-api-service.yml
service: outpost-api-service
depends_on:
- mongo
# Databases
postgres:
extends:
file: ./.docker/services/postgres/postgres.yml
service: postgres
networks:
- external_network
mongo:
extends:
file: ./.docker/services/mongo/mongo.yml
service: mongo
networks:
- external_network
volumes:
mongo-volume:
postgres-volume:
networks:
external_network:
internal_network:
internal: true