-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.22 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
services:
postgres:
image: postgres:16-alpine
container_name: hookscope-postgres
restart: unless-stopped
networks:
- hookscope
environment:
POSTGRES_USER: hookscope
POSTGRES_PASSWORD: hookscope
POSTGRES_DB: hookscope_api
expose:
- "5432"
volumes:
- hookscope_postgres_data:/var/lib/postgresql/data
client:
build:
context: ./apps/client
dockerfile: Dockerfile
container_name: hookscope-client
restart: unless-stopped
networks:
- hookscope
environment:
VITE_API_URL: ${CLIENT_API_URL}
api:
build:
context: ./apps/api
dockerfile: Dockerfile
container_name: hookscope-api
restart: unless-stopped
networks:
- hookscope
depends_on:
- postgres
env_file:
- ./apps/api/.env
expose:
- "3000"
nginx:
image: nginx:1.27-alpine
container_name: hookscope-nginx
restart: unless-stopped
networks:
- hookscope
depends_on:
- client
- api
env_file:
- ./.env
ports:
- "${NGINX_PORT}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/templates/default.conf.template:ro
volumes:
hookscope_postgres_data:
networks:
hookscope: