-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
41 lines (39 loc) · 939 Bytes
/
compose.yaml
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
services:
auth-app:
build:
context: .
target: builder
image: auth-app
container_name: auth-app
command: sh -c 'alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 80 --reload'
env_file:
- .env.example
ports:
- "8080:80"
networks:
- users-net
# mounting a volume will create permission issues for coverage report
# volumes:
# - .:/auth-app
depends_on:
users-pg:
condition: service_healthy
users-pg:
image: bitnami/postgresql:13
container_name: users-pg
environment:
- POSTGRESQL_USERNAME=admin
- POSTGRESQL_PASSWORD=thepass123
- POSTGRESQL_DATABASE=users_db
ports:
- "5432:5432"
networks:
- users-net
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d users_db" ]
interval: 10s
timeout: 5s
retries: 5
networks:
users-net:
name: users-net