-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 925 Bytes
/
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
version: "3.9" # optional since v1.27.0
services:
server:
build:
context: ./backend
dockerfile: Dockerfile
image: dockbox/server
ports:
- "5000:5000"
depends_on:
- "database"
environment:
- ENVIRONMENT=development
- PORT=5000
- DATABASE_NAME=prod
- DATABASE_HOST=database
- DATABASE_PORT=3306
- DATABASE_USER=root
- DATABASE_PASSWORD=password
- S3_BUCKET_KEY=srihari-shopify-challenge
- AWS_ACCESS_KEY_ID=<PUT ACCESS KEY ID HERE>
- AWS_SECRET_ACCESS_KEY=<PUT SECRET ACCESS KEY HERE>
- AWS_DEFAULT_REGION=us-east-1
- JWT_SECRET=random_secret
database:
image: mariadb:10.5
ports:
- "3306:3306"
command: --init-file /data/application/init.sql
volumes:
- ./init.sql:/data/application/init.sql
environment:
- MARIADB_ROOT_USER=root
- MARIADB_ROOT_PASSWORD=password