-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (67 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
69 lines (67 loc) · 1.38 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
62
63
64
65
66
67
68
69
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sharkservers_backend
command: uvicorn sharkservers.main:app --reload --host 0.0.0.0 --port 8080 --ws wsproto --proxy-headers
ports:
- "8080:8080"
volumes:
- ./backend/:/app/
env_file:
- ./backend/.env
depends_on:
db:
condition: service_started
redis:
condition: service_started
restart: always
networks:
- shark
db:
image: postgres:15.1
container_name: sharkservers_db
environment:
- POSTGRES_DB=shark_db
- POSTGRES_USER=shark_user
- POSTGRES_PASSWORD=shark_password
restart: always
ports:
- "5432:5432"
networks:
- shark
healthcheck:
test: "exit 0"
redis:
image: "redis:alpine"
container_name: sharkservers_redis
restart: always
expose:
- "6379:6379"
networks:
- shark
healthcheck:
test: "exit 1"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: runner
container_name: sharkservers_frontend
volumes:
- ./frontend/:/app
command: npm run dev
ports:
- "3000:3000"
environment:
NODE_ENV: development
user: "root:root"
depends_on:
- backend
networks:
- shark
networks:
shark:
name: shark
external: true