-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
77 lines (70 loc) · 1.55 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
77
version: "3.7"
x-app: &default-app
build:
dockerfile: Dockerfile.dev
context: .
volumes:
- "tmp:/workspace/tmp"
- "deps:/workspace/deps"
- "node_modules:/workspace/assets/node_modules"
- "build:/workspace/_build"
- "elixir-ls:/workspace/.elixir_ls"
- ".netrc:/root/.netrc"
x-test-env: &test-env
GOOGLE_AUTH_CLIENT_ID: test
GOOGLE_AUTH_CLIENT_SECRET: test-secret
services:
link-app:
<<: *default-app
depends_on:
- db
- testdb
ports:
- 4000:4000
environment:
GOOGLE_AUTH_CLIENT_ID: 921548238010-egr9u89cgrg0k4fss3j26pp2suk3gl4k.apps.googleusercontent.com
GOOGLE_AUTH_CLIENT_SECRET: VsQkTNpCB50wWdF1MHcslUYk
db:
build:
dockerfile: testing.postgresql.Dockerfile
context: .
ports:
- 5432:5432
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: link_dev
volumes:
- "./postgres-data:/var/lib/postgresql/data:delegated"
ci:
<<: *default-app
environment:
<<: *test-env
MIX_ENV: test
command: "mix ci"
depends_on:
- testdb
docs:
<<: *default-app
environment:
<<: *test-env
command: "mix makedocs"
testdb:
build:
dockerfile: testing.postgresql.Dockerfile
context: .
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: link_test
volumes:
- "testdb:/var/lib/postgresql/data"
volumes:
tmp:
deps:
node_modules:
build:
elixir-ls:
testdb: