-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.15 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
version: "3.7"
services:
frontend:
build: ./frontend
ports:
- "4001:4001"
command: npm run serve
working_dir: /app
user: ${HOST_UID_GID}
depends_on:
- backend
volumes:
- ./frontend:/app
backend:
build: .
ports:
- "4000:4000"
command: mix phx.server
working_dir: /app
user: ${HOST_UID_GID}
environment:
MIX_ENV: ${MIX_ENV:-dev}
PG_USER: "postgres"
PG_PASSWORD: "postgres"
PG_HOST: "db"
depends_on:
- db
volumes:
- .:/app
release:
image: ex_diet:1.1.1
ports:
- "4002:4000"
environment:
PORT: 4000
URL_HOST: localhost
URL_PORT: 4002
URL_SCHEME: http
SECRET_KEY_BASE: m4NcRfxYZzAignPAWdzNap0Ljg6SoStDrfecjXTyVB73+LdHMNS6/I145MiRAXe9
POSTGRES_URL: ecto://postgres:postgres@db/ex_diet-dev?pool_size=10
user: service:service
depends_on:
- db
db:
image: postgres:10-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: {}