-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 1.33 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
68
69
version: '3.7'
services:
web:
build:
context: app
dockerfile: Dockerfile
environment:
- NODE_ENV=production
ports:
- '127.0.0.1:3000:3000'
networks:
- front-back
volumes:
- type: bind
source: ./app
target: /app
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- '127.0.0.1:4466:4466'
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mongo
uri: mongodb://prisma:prisma@mongo
networks:
- back-db
- back-prisma
mongo:
image: mongo:3.6
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: prisma
MONGO_INITDB_ROOT_PASSWORD: prisma
ports:
- '127.0.0.1:27018:27018'
volumes:
- mongo:/var/lib/mongo
networks:
- back-db
server:
build:
context: server
dockerfile: Dockerfile
ports:
- '127.0.0.1:4000:4000'
networks:
- front-back
- back-prisma
volumes:
- type: bind
source: ./server
target: /server
networks:
front-back:
driver: bridge
back-prisma:
driver: bridge
back-db:
driver: bridge
volumes:
mongo: ~