-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.06 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
version: '3'
services:
web:
image: denyskozak/the-best-todo-front-end
ports:
- "80:80"
restart: always
environment:
NODE_ENV: production
depends_on:
- server
server:
image: denyskozak/the-best-todo-back-end
volumes:
- "./dockerScripts:/app/dockerScripts"
ports:
- "4000:4000"
restart: always
entrypoint: ["sh", "./dockerScripts/entrypoint.sh"]
environment:
NODE_ENV: production
PRISMA_ENDPOINT: ${PRISMA_ENDPOINT}
APP_SECRET: ${APP_SECRET}
depends_on:
- prisma
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- '4466:4466'
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: prisma
depends_on:
- mysql
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
volumes:
mysql: ~