-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 996 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
41
42
43
44
45
version: "2.3"
# Stack prefix: calculator
# Port prefix: 3186
#
# We need this so that we don't get name or port collisions when connecting multiple
# stacks to the same network.
services:
app:
container_name: "${NETWORK:-development}-calculator-api"
mem_limit: 756m
build:
context: .
dockerfile: Dockerfile
environment:
DB_HOST: db
depends_on:
- db
ports:
- "${PORT_PREFIX:-3}1860:9393"
volumes:
- .:/app:cached
- bundle:/usr/local/bundle
networks:
- default
- farmdrop
stdin_open: true
tty: true
command: ["thor", "app", "server"]
db:
container_name: "${NETWORK:-development}-calculator-db"
image: postgres:11.2
ports:
- "${PORT_PREFIX:-3}1861:5432"
volumes:
- postgresdata:/var/lib/postgresql/data
networks:
- default
- farmdrop
volumes:
bundle:
postgresdata:
networks:
farmdrop:
external:
name: "farmdrop-${NETWORK:-development}"