-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 828 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 828 Bytes
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
version: "3.8"
services:
postgres:
container_name: postgresql-db
image: postgres:14.3-alpine
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
ports:
- 5050:80
depends_on:
- postgres
api:
container_name: api
build: .
command: bash -c "alembic upgrade head && python seeder.py && uvicorn app.main:app --host 0.0.0.0 --port 8080 --reload"
volumes:
- ./:/usr/src/app
ports:
- 8080:8080
depends_on:
- postgres
restart: always