-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (42 loc) · 945 Bytes
/
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
name: trippify
services:
mongodb:
image: mongo:latest
command: --quiet --logpath /dev/null
ports:
- 27017:27017
volumes:
- mongodb-data:/data/db:rw
backend:
build:
context: ./backend
target: hot-reload
command: -build="sleep 3 && go build -o /build main.go" -command="/build/main" -log-prefix=false
volumes:
- ./backend:/app:ro
depends_on:
- mongodb
ports:
- 3000:3000
frontend:
build:
context: ./frontend
command: dev:network
nginx:
image: nginx:1.27.0-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- frontend
- backend
# certbot:
# image: certbot/certbot
# volumes:
# - /etc/letsencrypt:/etc/letsencrypt
# - /var/log/letsencrypt:/var/log/letsencrypt
volumes:
mongodb-data: