-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.09 KB
/
docker-compose.yml
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
version: '3.8'
services:
# React Frontend
react-app:
build:
context: ./react-app
dockerfile: Dockerfile.dev
expose:
- "3000" # Expose the port within the Docker network
volumes:
- ./react-app:/app
environment:
- NODE_ENV=development
networks:
- internal
# Go Fiber API
go-fiber:
build:
context: ./go-fiber
dockerfile: Dockerfile.dev
expose:
- "3001" # Expose the port within the Docker network
ports:
- "2345:2345" # Delve debugger
volumes:
- ./go-fiber:/app
environment:
- AIR_ENV=development
networks:
- internal
redis:
image: redis:alpine
expose:
- "6379"
networks:
- internal
# Nginx Reverse Proxy
nginx-proxy:
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
# - "443:443" # HTTPS
- "8080:8080" # HTTP
volumes:
- ./nginx/nginx.dev.conf:/etc/nginx/conf.d/nginx.conf
depends_on:
- react-app
- go-fiber
networks:
- internal
networks:
internal:
driver: bridge