-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (59 loc) · 2.31 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
version: "3.7"
volumes:
postgres_data:
demo_gem_bundle:
demo_node_modules:
services:
postgres:
image: postgres:10.6-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- ${DEMO_PGPORT:-5432}:5432
environment:
POSTGRES_PASSWORD: 3x4mpl3P455w0rd
# The service that replicates the problem:
demo:
depends_on:
- postgres
image: icalialabs/flipper-and-new-relic-rpm-segfault-demo:development
build:
context: .
dockerfile: Dockerfile
args:
- DEVELOPER_UID=${UID:-1000}
volumes:
# Mount our app code directory (".") into our app containers at the
# "/usr/src" folder:
- .:/usr/src
- demo_gem_bundle:/usr/local/bundle
# Replace the local 'node_modules' folder with a Docker volume, so we can
# run the frontend app either from the host (i.e. macOS) or using
# containers without having one or another clobbering the npm packages or
# conflicting versions for macOS / Linux:
- demo_node_modules:/usr/src/node_modules
# Keep the stdin open, so we can attach to our app container's process
# and do things such as byebug, etc:
stdin_open: true
# Enable sending signals (CTRL+C, CTRL+P + CTRL+Q) into the container:
tty: true
# entrypoint: /usr/src/bin/dev-entrypoint.sh
ports:
- ${DEMO_WEB_PORT:-3000}:3000
command: rails db:setup
# Specify environment variables available for our app containers. We'll
# leave a YML anchor in case we need to override or add more variables if
# needed on each app container:
environment:
# We'll set the DATABASE_URL environment variable for the app to connect
# to our postgres container - no need to use a 'config/database.yml' file.
DATABASE_URL: postgres://postgres:3x4mpl3P455w0rd@postgres:5432/demo_development
RAILS_ENV: production
RACK_ENV: production
RAILS_LOG_TO_STDOUT: "true"
SECRET_KEY_BASE: d78c5f24f775f062dfb377bf373ffcba084c2b685a14306ada8993d390846b993d2a753972c5d070325899c93e3cbd0a4b80e36815d792aae8276d825559908c
NEW_RELIC_AGENT_ENABLED: "true"
NEW_RELIC_ENV: development
NEW_RELIC_LICENSE_KEY: ${DEMO_NEW_RELIC_LICENSE_KEY}
NEW_RELIC_LOG: stdout
NEW_RELIC_ANALYTICS_EVENTS_MAX_SAMPLES_STORED: 500