-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.local.yml
121 lines (117 loc) · 3.13 KB
/
docker-compose.local.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
version: '3.3'
services:
database:
image: postgres:16.4
restart: always
ports:
- '6432:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=dev_db
redis:
image: redis:5.0.6
milmove_migrate:
depends_on:
- database
build:
context: .
dockerfile: Dockerfile.migrations_local
links:
- database
environment:
- DB_ENV=development
- DB_HOST=database
- DB_NAME=dev_db
- DB_PASSWORD=mysecretpassword
- DB_PORT=5432
- DB_SSL_MODE=disable
- DB_USER=postgres
- ENVIRONMENT=test
- MIGRATION_PATH=file:///migrate/schema;file:///migrate/secure
- MIGRATION_MANIFEST=/migrate/migrations_manifest.txt
entrypoint:
- '/bin/milmove'
- 'migrate'
volumes:
- ./migrations/app/secure:/migrate/secure
milmove:
depends_on:
- database
- milmove_migrate
- redis
build:
context: .
dockerfile: Dockerfile.local
# healthcheck:
# test: ["CMD", "/bin/milmove", "health"]
# interval: 5s
# timeout: 10s
# retries: 3
# start_period: 10s
links:
- database
ports:
- '4000:4000'
- '9443:9443'
environment:
- CLIENT_AUTH_SECRET_KEY
- CSRF_AUTH_KEY
- DB_DEBUG=1
- DB_ENV=development
- DB_HOST=database
- DB_NAME=dev_db
- DB_PASSWORD=mysecretpassword
- DB_PASSWORD_LOW_PRIV=mysecretpassword
- DB_PORT=5432
- DB_REGION=us-west-2
- DB_RETRY_INTERVAL=5s
- DB_SSL_MODE=disable
- DB_USER=postgres
- DB_USER_LOW_PRIV=crud
- DEVLOCAL_AUTH=1
- DEVLOCAL_CA=/config/tls/devlocal-ca.pem
- DOD_CA_PACKAGE=/config/tls/milmove-cert-bundle.p7b
- EIA_KEY=db2522a43820268a41a802a16ae9fd26 # dummy key generated with openssl rand -hex 16
- ENVIRONMENT=test
- HERE_MAPS_APP_CODE
- HERE_MAPS_APP_ID
- HERE_MAPS_GEOCODE_ENDPOINT
- HERE_MAPS_ROUTING_ENDPOINT
- HTTP_ADMIN_SERVER_NAME=adminlocal
- HTTP_MY_SERVER_NAME=milmovelocal
- HTTP_OFFICE_SERVER_NAME=officelocal
- HTTP_ORDERS_SERVER_NAME=orderslocal
- HTTP_PRIME_SERVER_NAME=primelocal
- IWS_RBS_ENABLED=1
- IWS_RBS_HOST
- LOCAL_STORAGE_ROOT=/tmp
- LOCAL_STORAGE_WEB_ROOT=storage
- LOGIN_GOV_ADMIN_CLIENT_ID
- LOGIN_GOV_CALLBACK_PORT=4000
- LOGIN_GOV_CALLBACK_PROTOCOL
- LOGIN_GOV_HOSTNAME
- LOGIN_GOV_MY_CLIENT_ID
- LOGIN_GOV_OFFICE_CLIENT_ID
- LOGIN_GOV_SECRET_KEY
- MOVE_MIL_DOD_CA_CERT
- MOVE_MIL_DOD_TLS_CERT
- MOVE_MIL_DOD_TLS_KEY
- MUTUAL_TLS_ENABLED=0
- NO_TLS_ENABLED=1
- NO_TLS_PORT=4000
- OKTA_TENANT_CALLBACK_PORT=4000
- OKTA_TENANT_CALLBACK_PROTOCOL=http
- PGPASSWORD=mysecretpassword
- REDIS_HOST=redis
- SERVE_ADMIN=true
- SERVE_API_GHC=true
- SERVE_API_INTERNAL=true
- SERVE_API_PRIME=false
- SERVE_API_PPTAS=true
- SERVE_API_SUPPORT=false
- STORAGE_BACKEND=local
- TLS_ENABLED=1
- TZ=UTC
volumes:
- ./tmp:/tmp