-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
103 lines (92 loc) · 1.82 KB
/
docker-compose.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.8'
x-faraway-build: &default-faraway-build
image: debian:bullseye-slim
env_file: ${ENV_FILE}
profiles:
- default
volumes:
- ./dist/server:/usr/local/bin/server
- ./dist/client:/usr/local/bin/client
networks:
- faraway
services:
server:
expose:
- "${SERVER_PORT}"
<<: *default-faraway-build
command: "server"
client:
<<: *default-faraway-build
depends_on:
- server
command: "client"
migrations:
build:
context: .
dockerfile: dockerfiles/migrations.Dockerfile
env_file:
- ${ENV_FILE}
networks:
- faraway
profiles:
- migration
postgresdb:
image: postgres:14.8
expose:
- "5432"
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=faraway-db
volumes:
- db-data:/var/lib/postgresql/data
command: "-c log_statement=all"
networks:
- faraway
profiles:
- database
redis:
image: "redis:7-alpine"
expose:
- "6379"
ports:
- 6379:6379
volumes:
- redis:/data
command: redis-server
networks:
- faraway
profiles:
- cache
integration-test:
build:
context: .
dockerfile: dockerfiles/integration-test.Dockerfile
env_file:
- .env
networks:
- faraway
profiles:
- integration-test
test-executor:
image: alpine:3
volumes:
- ./tools/dist/run_e2e:/usr/local/bin/run_e2e
- ./tools/dist/venom:/usr/local/bin/venom
- ./test-outputs:/outputs
- ./test:/test
env_file: ${ENV_FILE}
entrypoint: /usr/local/bin/run_e2e
command: ${SUITE:-*/*/*.yml}
networks:
- faraway
profiles:
- testing
volumes:
redis:
db-data:
networks:
faraway:
driver: bridge