This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
/
docker-compose.yml
88 lines (86 loc) · 2.12 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.0"
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
entrypoint: "/var/www/app/docker/startup.sh"
command: "httpd -D FOREGROUND"
depends_on:
- database
environment:
APP_DIR: /var/www/app
VCAP_APPLICATION: >
{
"fake": "yes",
"application_name": "app",
"name": "app",
"uris": [
"localhost:8000"
]
}
VCAP_SERVICES: >
{
"aws-rds": [
{
"name": "database",
"credentials": {
"db_name": "dashboard",
"host": "database",
"password": "mysql",
"port": "3306",
"username": "root"
}
}
],
"s3": [
{
"binding_name": null,
"credentials": {
"access_key_id": "SOME_ACCESS_KEY_ID",
"additional_buckets": [],
"bucket": "SOME_BUCKET_ID",
"region": "us-gov-west-1",
"secret_access_key": "SOME_SECRET_ACCESS_KEY",
"uri": "s3://some-long-uri"
},
"instance_name": "s3",
"label": "s3",
"name": "s3",
"plan": "basic-sandbox",
"provider": null,
"syslog_drain_url": null,
"tags": [
"AWS",
"S3",
"object-storage"
],
"volume_mounts": []
}
],
"user-provided": [
{
"name": "secrets",
"credentials": {
"ENCRYPTION_KEY": "not-a-real-key-from-vcap",
"NEWRELIC_LICENSE": "another-dummy-value"
}
}
]
}
ports:
- "8000:80"
volumes:
- .:/var/www/app:delegated
- uploads:/var/www/app/uploads
database:
image: mysql:5.7
platform: linux/x86_64
volumes:
- database_data:/var/lib/mysql:delegated
environment:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: dashboard
volumes:
database_data:
uploads: