-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 908 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
36
version: "3"
services:
# mysql:
# container_name: db
# image: mysql
# environment:
# - MYSQL_ROOT_PASSWORD=$DB_PASSWORD
# - MYSQL_DATABASE=$DB_NAME
# volumes:
# - db-data:/var/lib/mysql
# ports:
# - "3306:3306"
# healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
# timeout: 20s
# retries: 10
app:
container_name: app-docker
build: .
environment:
- PORT=$PORT
- DB_HOST=$DB_HOST
- DB_USERNAME=$DB_USERNAME
- DB_PASSWORD=$DB_PASSWORD
- DB_NAME=$DB_NAME
- DB_PORT=$DB_PORT
- SECRET_KEY=$SECRET_KEY
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_REGION=$AWS_REGION
- AWS_BUCKET_NAME=$AWS_BUCKET_NAME
- AWS_CERTIFICATES_BUCKET_NAME=$AWS_CERTIFICATES_BUCKET_NAME
ports:
- "3000:80"