-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.03 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
version: '3.7'
services:
mongodb:
image: mongo
restart: always
container_name: polynotes-mongodb
volumes:
- ./mnt/data/polynote:/data/db
networks:
polynote_net:
ipv4_address: 172.28.1.2
backend:
depends_on:
- mongodb
container_name: polynotes-backend
build: ./backend
ports:
- "3000:3000"
env_file:
- ./backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
command: npm run start:dev
environment:
- MONGO_URI=mongodb://mongodb:27017/mydatabase
networks:
- polynote_net
frontend:
container_name: polynotes-frontend
build:
context: ./frontend
target: prod
args:
VITE_APP_TENOR_API_KEY: ${VITE_APP_TENOR_API_KEY}
VITE_APP_BASE_URL: ${VITE_APP_BASE_URL}
env_file:
- ./frontend/.env
ports:
- "80:80"
- "443:443"
networks:
polynote_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
gateway: 172.28.0.1