-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.25 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
version: '3'
services:
spell_db:
build:
context: ./backend/spells_service/db
dockerfile: ./Dockerfile
ports: #for debug only
- "27017:27017"
logging:
driver: "none"
spell_service:
depends_on:
- spell_db
build:
context: ./backend/spells_service/pkg
target: prod
dockerfile: ./Dockerfile
environment:
- MONGO_URI=mongodb://spell_db:27017
- MONGO_DB=spells_service
- GIN_MODE=release
- GIN_PORT=80
ports:
- "8080:80"
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile
volumes:
- type: bind
source: ./frontend
target: /app
ports:
- "8181:5173"
# legacy_backend: ## Switch to golang api latter
# build:
# context: ./backend/legacy_spells
# dockerfile: ./Dockerfile
# volumes:
# - type: bind
# source: ./backend/legacy_spells
# target: /back-end
# ports:
# - "8080:80"
######### DEV ONLY
# spells_service_dev:
# build:
# context: ./backend/spells_service/pkg
# target: dev
# dockerfile: ./Dockerfile
# volumes:
# - type: bind
# source: ./backend/spells_service/pkg
# target: /app
# ports:
# - "8080:80"