forked from npocccties/chibichilo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1.22 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
# NOTE: DON'T USE IT IN PRODUCTION. 本番環境で使用しないで。
version: "3"
services:
mariadb:
image: "mariadb:10.5.12-focal"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: bitnami_moodle
# volumes:
# - ./db.sql:/docker-entrypoint-initdb.d/db.sql # NOTE: SQLファイルによる投入例
moodle:
image: "bitnami/moodle:3.11.2-debian-10-r32"
ports: ["8081:8080"]
environment:
MOODLE_USERNAME: user
MOODLE_PASSWORD: password
ALLOW_EMPTY_PASSWORD: "yes"
MOODLE_DATABASE_USER: root
BITNAMI_DEBUG: "true"
depends_on: [mariadb]
db:
image: "postgres:13.3-alpine3.14"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports: ["5432:5432"]
app:
image: "node:16.8-alpine3.14"
environment:
FRONTEND_ORIGIN: "http://localhost:3000"
SESSION_SECRET: super_secret_characters_for_session
OAUTH_CONSUMER_KEY: test
OAUTH_CONSUMER_SECRET: test
DATABASE_URL: postgresql://postgres:password@db/postgres
command: "sh -c 'cd /app && yarn && yarn dev'"
volumes: ["./:/app"]
ports:
- "3000:3000"
- "5555:5555"
- "8080:8080"
depends_on: [moodle, db]