-
Notifications
You must be signed in to change notification settings - Fork 139
/
docker-compose.yml
67 lines (60 loc) · 1.12 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
60
61
62
63
64
65
66
67
version: '3.7'
services:
proxy-frontend:
build:
context: ./
dockerfile: docker-compose/proxy/Dockerfile
networks:
- edge
ports:
- "8080:8080"
- "8001:8001"
backend:
build:
context: ./
dockerfile: docker-compose/backend/Dockerfile
ports:
- 8000:8000
volumes:
- ./backend:/app
depends_on:
- postgres
networks:
- edge
- envoymesh
env_file:
- backend/.env
frontend:
# user: 1000:1000
build:
context: ./
dockerfile: ./docker-compose/frontend/Dockerfile
ports:
- 3000:3000
networks:
- edge
- envoymesh
volumes:
- ./frontend:/app
- /app/node_modules
stdin_open: true
postgres:
image: docker.io/postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5433:5432
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: mypass
POSTGRES_DB: ou_db
POSTGRES_HOST: postgres
networks:
- envoymesh
volumes:
postgres_data:
networks:
edge:
name: edge
envoymesh:
name: envoymesh