-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstack.yml
More file actions
52 lines (47 loc) · 1.01 KB
/
stack.yml
File metadata and controls
52 lines (47 loc) · 1.01 KB
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
version: '3.2'
services:
api:
container_name: node_api_boilerplate
image: node:slim
restart: always
networks:
- boilerplate
ports:
- ${SERVER_PORT}:${SERVER_PORT}
volumes:
- .:/usr/app
command: bash -c "cd /usr/app && yarn && yarn start"
env_file: .env
mariadb:
container_name: ${MYSQL_HOST}
image: mariadb
restart: always
networks:
- boilerplate
ports:
- ${MYSQL_PORT}:${MYSQL_PORT}
volumes:
- mariadb_data:${MYSQL_DATA_DIR}
env_file: .env
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
mongodb:
container_name: ${MONGO_HOST}
image: mongo:latest
restart: always
networks:
- boilerplate
ports:
- ${MONGO_PORT}:${MONGO_PORT}
volumes:
- mongodb_data:${MONGO_DATA_DIR}
command: mongod --smallfiles --logpath=${MONGO_LOG_DIR} # --quiet
env_file: .env
volumes:
mariadb_data:
driver: local
mongodb_data:
driver: local
networks:
boilerplate:
external: true