-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 990 Bytes
/
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
version: "3"
services:
ui:
container_name: crawlyui.com
command: /crawlyui/bin/ec start
build:
context: .
dockerfile: Dockerfile
environment:
MIX_ENV: prod
SECRET_KEY_BASE: "UDWLdQ4flBCR2W7j1ECKj4VZUtop6st4+OBoCXjJMIn0TPDO++xyxbzOR1qN7pK7"
RELEASE_COOKIE: "123"
NODE_NAME: "[email protected]"
POOL_SIZE: 10
DATABASE_URL: ${DATABASE_URL:-ecto://postgres:example@crawlyuidb/crawlyui}
ports:
- 80:4000
postgres:
restart: always
image: postgres:11.4-alpine
container_name: crawlyuidb
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: example
PGPASSWORD: example
POSTGRES_USER: postgres
POSTGRES_DB: crawlyui
worker:
stdin_open: true
tty: true
container_name: worker.com
command: iex --cookie 123 --name [email protected] -S mix
build:
context: "examples"
dockerfile: Dockerfile
environment:
UI_NODE: "[email protected]"