-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.5 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
services:
platformics:
image: ghcr.io/chanzuckerberg/platformics:latest
build:
context: "."
dockerfile: "Dockerfile"
args:
- BUILDKIT_INLINE_CACHE=1
volumes:
- ./test_app:/app
- ./platformics:/app/platformics
dev-app:
image: "platformics-dev-app"
build:
context: "."
dockerfile: "Dockerfile.dev"
args:
- BUILDKIT_INLINE_CACHE=1
restart: always
ports:
- "9008:9008"
- "9009:9009"
environment:
- PYTHONPATH=.
- CERBOS_URL=http://cerbos:3692
- PLATFORMICS_DATABASE_HOST=platformics-db.platformics
- PLATFORMICS_DATABASE_PORT=5432
- PLATFORMICS_DATABASE_USER=postgres
- PLATFORMICS_DATABASE_PASSWORD=password_postgres
- PLATFORMICS_DATABASE_NAME=platformics
- DEFAULT_UPLOAD_BUCKET=local-bucket
- DEFAULT_UPLOAD_PROTOCOL=s3
- OUTPUT_S3_PREFIX=platformics
- BOTO_ENDPOINT_URL=http://motoserver.platformics:4000
- AWS_REGION=us-west-2
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
# TODO - these are keypairs for testing only! Do not use in prod!!
- JWK_PUBLIC_KEY_FILE=/app/etc/public_key.pem
- JWK_PRIVATE_KEY_FILE=/app/etc/private_key.pem
volumes:
- ./test_app:/app
- .:/platformics
- ./platformics:/app/platformics
command: ["/usr/local/bin/supervisord", "-c", "/app/etc/supervisord.conf"]
networks:
default:
name: platformics
driver: overlay
attachable: true
external: true