-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (62 loc) · 1.44 KB
/
docker-compose.yaml
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
version: "3"
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: "directus"
MYSQL_USER: "directus"
MYSQL_PASSWORD: "directus"
MYSQL_ROOT_PASSWORD: "directus"
ports:
- "3306:3306"
networks:
- site
directus:
build:
context: ./directus
dockerfile: Dockerfile
ports:
- "8080:80"
environment:
DIRECTUS_APP_ENV: "production"
DIRECTUS_AUTH_PUBLICKEY: "temp-public-key"
DIRECTUS_AUTH_SECRETKEY: "temp-secret-key"
DIRECTUS_DATABASE_HOST: "mysql"
DIRECTUS_DATABASE_PORT: "3306"
DIRECTUS_DATABASE_NAME: "directus"
DIRECTUS_DATABASE_USERNAME: "directus"
DIRECTUS_DATABASE_PASSWORD: "directus"
DIRECTUS_CORS_ENABLED:
DIRECTUS_CORS_ORIGIN:
volumes:
- ./directus/data/config:/var/directus/config
- ./directus/data/uploads:/var/directus/public/uploads
links:
- mysql:mysql
depends_on:
- mysql
networks:
- site
app:
stdin_open: true
build:
context: ./app
dockerfile: Dockerfile
volumes:
- "./app:/app"
- "/app/node_modules"
ports:
- "3001:3000"
environment:
env_file: .env
NODE_ENV: development
REACT_APP_BASE_API_URL: http://localhost:8080/
REACT_APP_AUTH_TOKEN: dofUvNoEaY7pG9jfqY58mKZHqEPqBVgQ # Change
depends_on:
- directus
links:
- directus
networks:
- site
networks:
site: