-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.25 KB
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
57
58
59
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- '5004:5004'
- '8000:8000'
command: tail -f /dev/null
environment:
APP_NAME: auth-plus-monetization
PORT: 5004
PYTHON_ENV: development
DATABASE_URL: postgresql+psycopg2://root:db_password@database:5432/monetization
KAFKA_URL: localhost:9092
volumes:
- .:/app
restart: always
networks:
- monetization-net
job:
build:
context: .
dockerfile: Dockerfile
command: poetry run python3 -m src.presentation.worker
environment:
APP_NAME: auth-plus-monetization
PYTHON_ENV: development
DATABASE_URL: postgresql+psycopg2://root:db_password@database:5432/monetization
KAFKA_URL: localhost:9092
volumes:
- .:/app
restart: always
networks:
- monetization-net
database:
container_name: postgres
image: postgres:15.1
restart: always
environment:
POSTGRES_PASSWORD: db_password
POSTGRES_USER: root
POSTGRES_DB: monetization
ports:
- '5432:5432'
volumes:
- v-database:/var/lib/postgres
networks:
- monetization-net
networks:
monetization-net:
driver: bridge
volumes:
v-database:
v-cache: