-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 941 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 941 Bytes
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
x-base-env: &x-base-env
RELEASE: 2023+compose
RUBYONRAILS_URL: http://ruby-on-rails:4567
DB_HOST: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_DATABASE: postgres
services:
react:
build: react
init: true
ports: [3000:3000]
flask:
build: flask
environment:
<<: *x-base-env
FLASK_ENVIRONMENT: test
FLASK_DSN: http://flask@mini-relay:9989/3
init: true
ports: [8080:8080]
ruby:
build: ruby-on-rails
environment:
<<: *x-base-env
RUBYONRAILS_DSN: http://ruby-on-rails@mini-relay:9989/4
init: true
mini-relay:
build: mini-relay
init: true
ports: [9989:9989]
volumes: [./_mini-relay/data:/data:rw]
postgres:
image: "postgres:alpine"
environment:
- POSTGRES_PASSWORD=postgres
init: true
ports: [5432:5432]
volumes:
- ./_postgres/data/empowerplant.sql:/docker-entrypoint-initdb.d/empowerplant.sql:ro