-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1022 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
49
50
51
52
53
54
55
version: "3"
services:
client:
build: ./client
image: webapp-react
restart: always
ports:
- "8080:80"
environment:
API_URL: "http://0.0.0.0:3000"
api:
build: ./api
image: webapp-api
restart: always
ports:
- "3000:3000"
networks:
- backend
environment:
PRISMA_URL: prisma
PRISMA_PORT: 4466
depends_on:
- prisma
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
networks:
- backend
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mongo
uri: 'mongodb://prisma:prisma@mongo'
mongo:
image: mongo:3.6
restart: always
networks:
- backend
environment:
MONGO_INITDB_ROOT_USERNAME: prisma
MONGO_INITDB_ROOT_PASSWORD: prisma
ports:
- "27017:27017"
volumes:
- mongo:/var/lib/mongo
volumes:
mongo:
networks:
backend:
driver: "bridge"