-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (52 loc) · 1.57 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
version: "3.8"
services:
db:
container_name: postgresql_db
image: postgis/postgis:14-3.2-alpine
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=${DB_USER_TEST}
- POSTGRES_PASSWORD=${DB_PASSWORD_TEST}
- POSTGRES_DB=${DB_NAME_TEST}
##host.docker.internal is used to connect to the host machine from the container
pgadmin-test:
container_name: pgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL_TEST}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD_TEST}
ports:
- 5050:80
depends_on:
- db
app:
container_name: app
build:
context: ./
dockerfile: ./app/Dockerfile
command: bash -c "alembic upgrade head && uvicorn main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
- ./app:/app
ports:
- 8000:8000
depends_on:
- db
restart: always
environment:
DATABASE_URL: ${DATABASE_URL_DEV}
PLUME_EMAIL: "${PLUME_EMAIL}"
PLUME_PASSWORD: "${PLUME_PASSWORD}"
PLUME_FIREBASE_API_KEY: "${PLUME_FIREBASE_API_KEY}"
PLUME_ORG_NUM: "${PLUME_ORG_NUM}"
FASTAPI_SENTRY_DSN: "${FASTAPI_SENTRY_DSN}"
PRODUCTION_MODE: "${PRODUCTION_MODE}"
AWS_STAGE_NAME: "${AWS_STAGE_NAME}"
JWT_SECRET: "${JWT_SECRET}"
ZEPHYR_USERNAME: "${ZEPHYR_USERNAME}"
ZEPHYR_PASSWORD: "${ZEPHYR_PASSWORD}"
SC_USERNAME: "${SC_USERNAME}"
SC_PASSWORD: "${SC_PASSWORD}"
CRON_JOB_TOKEN: "${CRON_JOB_TOKEN}"
FASTAPI_SENTRY_SAMPLE_RATE: "${FASTAPI_SENTRY_SAMPLE_RATE}"