-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 979 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 979 Bytes
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
version: "3"
services:
rdbms:
container_name: rdbms
image: mariadb:10
restart: always
ports:
- 3307:3306
volumes:
- rdbms:/var/lib/mysql
- ./docker/rdbms/initdb:/docker-entrypoint-initdb.d
env_file:
- ./api/.env
environment:
- MYSQL_ROOT_PASSWORD=${RDBMS_ROOT_PASSWORD}
- MYSQL_DATABASE=${RDBMS_DATABASE}
api:
container_name: api
build:
dockerfile: Dockerfile
context: ./api
depends_on:
- rdbms
volumes:
- .:/app
- /app/api/node_modules
env_file:
- ./api/.env
environment:
- THIS_API_SERVER_PORT=${THIS_API_SERVER_PORT}
- RDBMS_HOST=${RDBMS_HOST}
- RDBMS_USER=${RDBMS_USER}
- RDBMS_PASSWORD=${RDBMS_PASSWORD}
- RDBMS_DATABSE=${RDBMS_DATABASE}
proxy:
container_name: proxy
build:
dockerfile: Dockerfile
context: ./docker/proxy
ports:
- 8080:80
depends_on:
- api
volumes:
rdbms: