-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 952 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
40
41
42
43
44
45
46
version: '3'
services:
# PostgreSQL
postgresdb:
image: postgres:11.5
restart: on-failure:5
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: db_user
# MySQL
# mysqldb:
# image: mysql:5.7
# restart: on-failure:5
# environment:
# MYSQL_ROOT_PASSWORD: password
# MYSQL_PASSWORD: password
# MYSQL_USER: db_user
app:
build:
context: .
args:
APP_HOME: $APP_HOME
APP_PORT: $APP_PORT
IMAGE: $IMAGE
environment:
RAILS_DB_ADAPTER: postgresql
RAILS_DB_HOST: postgresdb
RAILS_DB: app
RAILS_DB_USERNAME: db_user
RAILS_DB_PASSWORD: password
RAILS_DB_ENCODING: utf8
RAILS_ENV: development
env_file: .env
tty: true
ports:
- $APP_PORT:3000
- 3035:3035
depends_on:
- postgresdb
# - mysqldb
volumes:
- ./app/.git:$APP_HOME/.git
- ./share:$APP_HOME/../share