-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
65 lines (61 loc) · 1.47 KB
/
docker-compose.dev.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
services:
redwood:
build:
context: .
dockerfile: ./Dockerfile
target: base
command: yarn rw dev
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
ports:
- '8910:8910'
depends_on:
- db
- smtp
- s3
environment:
- DATABASE_URL=mysql://redwood:redwood@db:4406/redwood
- TEST_DATABASE_URL=mysql://redwood:redwood@db:4406/redwood_test
- SESSION_SECRET=super_secret_session_key_change_me_in_production_please
- APP_NAME=researchequals-test-env
- NODE_ENV=development
- REDWOOD_API_HOST=0.0.0.0
- SMTP_HOST=smtp
- SMTP_PORT=1025
- S3_ENDPOINT=http://s3:9000
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
- S3_BUCKET=my-bucket
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: redwood
MYSQL_DATABASE: redwood
MYSQL_USER: redwood
MYSQL_PASSWORD: redwood
ports:
- '4406:4406'
volumes:
- mysql:/var/lib/mysql
- ./mysql-init:/docker-entrypoint-initdb.d
smtp:
image: mailhog/mailhog
ports:
- '1025:1025' # SMTP server
- '8025:8025' # Web UI
s3:
image: minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- '9000:9000'
- '9001:9001'
volumes:
- s3-data:/data
volumes:
node_modules:
mysql:
s3-data: