-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (57 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
63 lines (57 loc) · 1.14 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
60
61
services:
db:
container_name: db
image: postgres:16
env_file:
- ./db/.env
volumes:
- ./postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
api:
container_name: api
image: reallystick_api
build:
context: ./backend/api
dockerfile: Dockerfile
environment:
- APP_DATABASE__HOST=db
env_file:
- ./backend/.env.docker
command: "/app/api/entrypoint.sh"
ports:
- "8000:8000"
volumes:
- ./backend:/app
depends_on:
- db
- redis
notifications:
container_name: notifications
image: reallystick_notifications
build:
context: ./backend/notifications
dockerfile: Dockerfile
environment:
- APP_DATABASE__HOST=db
- APP_APPLICATION__PORT=8001
env_file:
- ./backend/.env.docker
command: "/app/notifications/entrypoint.sh"
ports:
- "8001:8001"
volumes:
- ./backend:/app
depends_on:
- api
- db
- redis
redis:
image: redis:7
container_name: redis
restart: always
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: