-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 844 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 844 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:
web:
container_name: someapp
build: ./
volumes:
- ./:/srv/someapp
- /srv/someapp/.venv
ports:
- 8074:8095
environment:
- DATABASE_URL=postgresql+asyncpg://some_user:somepassw@postgres-db:5432/some_db
depends_on:
- postgres-db
postgres-db:
image: postgres:15.3
container_name: postgres-db
environment:
- POSTGRES_HOST=postgres-db
- POSTGRES_PORT=5432
- POSTGRES_USER=some_user
- POSTGRES_PASSWORD=somepassw
- POSTGRES_DB=some_db
postgres-testdb:
image: postgres:15.3
container_name: postgres-testdb
ports:
- 5433:5432
environment:
- POSTGRES_HOST=postgres-testdb
- POSTGRES_PORT=5432
- POSTGRES_USER=some_user
- POSTGRES_PASSWORD=somepassw
- POSTGRES_DB=some_testdb