-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 832 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
36
37
38
39
version: "3.9"
networks:
async-tutorial:
volumes:
async-tutorial-backend-cache:
async-tutorial-db:
services:
async-tutorial-backend:
restart: "no"
build:
context: ./
dockerfile: ./Dockerfile
ports:
- "9000:9000"
volumes:
- "./:/app"
- "async-tutorial-backend-cache:/root/.cache/pip"
environment:
PYTHONPATH: /app
DB_URL: "postgresql+asyncpg://tutorial:secret@async-tutorial-db:5432/tutorial"
networks:
async-tutorial:
working_dir: "/app"
command: ["./run.sh"]
async-tutorial-db:
restart: "no"
image: "postgres:13-alpine"
volumes:
- "async-tutorial-db:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: tutorial
POSTGRES_DB: tutorial
networks:
async-tutorial: