-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose-azure.yml
67 lines (66 loc) · 2.18 KB
/
docker-compose-azure.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '2'
services:
mysql:
# image: mysql:5.7.21
image: mysql:8.0.26
platform: linux/x86_64
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
hostname: 'mysql'
environment:
MYSQL_DATABASE: 'slidehub'
MYSQL_ROOT_PASSWORD: 'pass'
ports:
- '3306:3306'
volumes:
- mysql-data:/var/lib/mysql
app:
build:
context: .
dockerfile: 'Dockerfile'
args:
INSTALL_MAILCATCHER: "true" # 開発環境用
SUPERVISOR_CONF: "script/oss_docker_supervisor_dev.conf"
EXPOSE_PORTS: "3000 1080"
depends_on:
- mysql
environment:
RAILS_ENV: development
OSS_USE_AZURE: 1
OSS_AZURE_CONTAINER_NAME: $OSS_AZURE_CONTAINER_NAME
OSS_AZURE_IMAGE_CONTAINER_NAME: $OSS_AZURE_IMAGE_CONTAINER_NAME
OSS_AZURE_CDN_BASE_URL: $OSS_AZURE_CDN_BASE_URL
OSS_AZURE_QUEUE_NAME: $OSS_AZURE_QUEUE_NAME
OSS_AZURE_STORAGE_ACCOUNT_NAME: $OSS_AZURE_STORAGE_ACCOUNT_NAME
OSS_AZURE_STORAGE_ACCESS_KEY: $OSS_AZURE_STORAGE_ACCESS_KEY
OSS_DB_NAME_DEV: 'slidehub'
OSS_DB_USERNAME_DEV: 'root'
OSS_DB_PASSWORD_DEV: 'pass'
OSS_DB_URL_DEV: 'mysql'
OSS_DB_NAME_TEST: 'test_slidehub'
OSS_DB_USERNAME_TEST: 'root'
OSS_DB_PASSWORD_TEST: 'pass'
OSS_DB_URL_TEST: 'mysql'
OSS_FACEBOOK_APP_ID: $OSS_FACEBOOK_APP_ID
OSS_FACEBOOK_APP_SECRET: $OSS_FACEBOOK_APP_SECRET
OSS_TWITTER_CONSUMER_KEY: $OSS_TWITTER_CONSUMER_KEY
OSS_TWITTER_CONSUMER_SECRET: $OSS_TWITTER_CONSUMER_SECRET
OSS_TWITTER_CALLBACK_URL: 'http://localhost:3000/users/auth/twitter/callback'
OSS_IDP_CERT_FINGERPRINT: $OSS_IDP_CERT_FINGERPRINT
OSS_IDP_SSO_TERGET_URL: $OSS_IDP_SSO_TARGET_URL
OSS_FROM_EMAIL: [email protected]
OSS_SMTP_SERVER: localhost
OSS_SMTP_PORT: 1025
OSS_SMTP_AUTH_METHOD: plain
OSS_SMTP_PASSWORD: test
OSS_SMTP_USERNAME: test
OSS_ROOT_URL: http://localhost:3000
OSS_LOGIN_REQUIRED: $OSS_LOGIN_REQUIRED
RAILS_LOG_TO_STDOUT: 'yes'
ports:
- '3000:3000'
- '1080:1080'
volumes:
- .:/opt/application/current:cached
volumes:
mysql-data:
driver: local