-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
88 lines (82 loc) · 2.39 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
mongodb-stylo:
image: mongo:4.4
container_name: "mongodb-stylo"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
command: mongod --logpath=/dev/null
healthcheck:
test: ["CMD", "mongo", "--eval", "\"db.adminCommand('ping')\""]
interval: 30s
timeout: 5s
ports:
- 127.0.0.1:27017:27017
graphql-stylo:
build:
context: ./graphql/
labels:
- org.opencontainers.image.source=https://github.com/EcrituresNumeriques/stylo
image: "ghcr.io/ecrituresnumeriques/stylo-graphql:${TAG:-latest}"
container_name: "graphql-stylo"
depends_on:
mongodb-stylo:
condition: service_healthy
env_file:
- .env
environment:
- DATABASE_URL=mongodb://mongodb-stylo:27017/stylo-dev
ports:
- 127.0.0.1:3030:3030
export-stylo:
build:
context: ./export/
labels:
- org.opencontainers.image.source=https://github.com/EcrituresNumeriques/stylo
container_name: "export-stylo" # export-stylo-legacy
image: "ghcr.io/ecrituresnumeriques/stylo-export:${TAG:-latest}"
depends_on:
mongodb-stylo:
condition: service_healthy
env_file:
- .env
ports:
- 127.0.0.1:3060:3060
front-stylo:
build:
context: ./front
dockerfile: dockerfile
labels:
- org.opencontainers.image.source=https://github.com/EcrituresNumeriques/stylo
args:
- SNOWPACK_MATOMO_URL
- SNOWPACK_MATOMO_SITE_ID
image: "ghcr.io/ecrituresnumeriques/stylo-front:${TAG:-latest}"
container_name: "front-stylo"
volumes:
- ./front/build:/usr/share/nginx/html
env_file:
- .env
ports:
- 127.0.0.1:3000:80
depends_on:
- graphql-stylo
export-gateway:
image: "davidbgk/stylo-export:1.1.0"
container_name: "export-gateway" # export-stylo-modern
env_file:
- .env
environment:
- SE_PANDOC_API_BASE_URL=${SE_PANDOC_API_BASE_URL:-http://pandoc-api:8000/latest/}
- SE_ALLOWED_INSTANCE_BASE_URLS=${SE_ALLOWED_INSTANCE_BASE_URLS:-http://localhost:3000 http://localhost:3030 http://host.docker.internal:3030}
ports:
- 127.0.0.1:3080:8001
extra_hosts:
- "host.docker.internal:host-gateway"
pandoc-api:
image: "davidbgk/pandoc-api:0.0.17"
container_name: "pandoc-api"
ports:
- 127.0.0.1:3090:8000