forked from opuslogica/docker-deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 901 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
---
version: '3.6'
services:
# This is a standard mysql database container
db:
image: "mysql:5.7"
environment:
MYSQL_ROOT_PASSWORD: ${mysql_root_password:?err}
MYSQL_USER: ${mysql_user:?err}
MYSQL_PASSWORD: ${mysql_password:?err}
MYSQL_DATABASE: ${db_name:?err}
# The api container requires build time as well as runtime arguments
# The arguments are found in ./variables.sh as documented in README.md
api:
build:
context: './'
args:
- git_server
- repo_name
- ruby_version
ports:
# Assume the application will be run on port 3000
- "${api_port:?err}:3000"
environment:
branch: ${branch:?err}
git_hash: ${git_hash:?err}
deployment_url: ${deployment_url:?err}
repo_name: ${repo_name:?err}
mysql_root_password: ${mysql_root_password:?err}
db_name: ${db_name:?err}