-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (33 loc) · 923 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
37
38
39
version: "3.3"
services:
api_database:
image: mysql:5.7
restart: unless-stopped
volumes:
- api_db_database_volume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${ATHENA_API_DB_PASSWORD}
MYSQL_DATABASE: ${ATHENA_API_DB_NAME}
MYSQL_USER: ${ATHENA_API_DB_USER}
MYSQL_PASSWORD: ${ATHENA_API_DB_PASSWORD}
athena_api:
build: ./api
restart: unless-stopped
ports:
- ${ATHENA_API_PORT}:${ATHENA_API_PORT}
depends_on:
- api_database
environment:
ATHENA_API_PORT: ${ATHENA_API_PORT}
ATHENA_API_DB_HOST: api_database
ATHENA_API_DB_NAME: ${ATHENA_API_DB_NAME}
ATHENA_API_DB_USER: ${ATHENA_API_DB_USER}
ATHENA_API_DB_PASSWORD: ${ATHENA_API_DB_PASSWORD}
athena_web:
build: ./web
restart: unless-stopped
ports:
- ${ATHENA_WEB_PORT}:80
volumes:
api_db_database_volume:
driver: local