-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose-prod.yml
55 lines (53 loc) · 1.57 KB
/
docker-compose-prod.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
services:
ashirt-service:
depends_on:
db:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile.prod.web
ports:
- 8000:8000
restart: on-failure
environment:
APP_CSRF_AUTH_KEY: "dummy-csrf-for-testing-prod-locally"
APP_IMGSTORE_BUCKET_NAME: ""
APP_IMGSTORE_REGION: ""
APP_PORT: 8000
APP_SESSION_STORE_KEY: "dummy-session-key-for-testing-prod-locally"
AUTH_OKTA_BACKEND_URL: "http://localhost:8080/web"
AUTH_OKTA_CLIENT_ID:
AUTH_OKTA_CLIENT_SECRET:
AUTH_OKTA_FAILURE_REDIRECT_URL_PREFIX: "http://localhost:8080"
AUTH_OKTA_ISSUER:
AUTH_OKTA_PROFILE_TO_SHORTNAME_FIELD: preferred_username
AUTH_OKTA_SUCCESS_REDIRECT_URL: "http://localhost:8080"
AUTH_SERVICES: ashirt
DB_URI: dev-user:dev-user-password@tcp(db:3306)/dev-db
frontend:
depends_on:
- ashirt-service
build:
context: .
dockerfile: Dockerfile.prod.frontend
ports:
- 8080:8080
environment:
NGINX_PORT: 8080
WEB_URL: http://ashirt-service:8000
db:
image: mysql:8.0
ports:
- 3306:3306
volumes:
- ./backend/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- ./dev_seed_data/z01_seed_data.sql:/docker-entrypoint-initdb.d/z01_seed_data.sql
environment:
- MYSQL_DATABASE=dev-db
- MYSQL_ROOT_PASSWORD=dev-root-password
- MYSQL_USER=dev-user
- MYSQL_PASSWORD=dev-user-password
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 5s
retries: 10