-
Notifications
You must be signed in to change notification settings - Fork 534
/
docker-compose.yml
98 lines (90 loc) · 2.18 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3"
services:
notifications:
build:
context: ./packages/notifications
environment:
SERVICE_WEB_PUBSUB_CONNECTION_STRING: "Endpoint=https://foobar.webpubsub.azure.com;AccessKey=abc;Version=1.0;"
SERVICE_WEB_PUBSUB_PORT: 4300
ports:
- "4300:4300"
stripe:
build:
context: .
dockerfile: ./packages/stripe/Dockerfile
environment:
API_URL: http://host.docker.internal:7071
ports:
- "4242:4242"
extra_hosts:
- "host.docker.internal:host-gateway"
blog:
build:
context: ./packages/blog
environment:
NEXT_PUBLIC_STRAPI_API_URL: http://blog-cms:1337
ports:
- "3000:3000"
depends_on:
- blog-cms
blog-cms:
build:
context: ./packages/blog-cms
environment:
APP_KEYS: 4ppK3y1,4ppK3y2
JWT_SECRET: Jw7s3cr3t
ADMIN_JWT_SECRET: 4dm1nJw7s3cr3t
API_TOKEN_SALT: pepper
DATABASE_HOST: postgres
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: PostgresPass
DATABASE_NAME: strapi
DATABASE_PORT: 5432
DATABASE_SSL: "false"
ports:
- "1337:1337"
depends_on:
postgres:
condition: service_healthy
mongodb:
image: mongo:5.0
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=mongo
- MONGO_INITDB_ROOT_PASSWORD=MongoPass
ports:
- "27017:27017"
volumes:
- mongodata:/data/db
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: PostgresPass
POSTGRES_DB: strapi
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
postgres_setup:
image: postgres:latest
working_dir: /scripts/
environment:
STRAPI_DATABASE_HOST: postgres
STRAPI_DATABASE_USERNAME: postgres
STRAPI_DATABASE_PASSWORD: PostgresPass
STRAPI_DATABASE_NAME: strapi
command: ["./restore.sh", "strapi_20230922"]
volumes:
- ./scripts/database:/scripts
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata:
mongodata: