-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-buildx.yml
56 lines (50 loc) · 1.2 KB
/
docker-compose-buildx.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
version: "3.2"
volumes:
redis_data: {}
services:
redis:
image: redis
container_name: redis
ports:
- 6379:6379
command: redis-server --requirepass 'MyS3cr3t'
volumes:
- redis_data:/data
api:
image: ${DOCKER_REPO:-registry.gitlab.com/tikal-external/academy-public/images}/nodejs-ping:${DOCKER_VERSION:-latest}
build:
context: ./src/api/
x-bake:
platforms:
- linux/amd64
- linux/arm64
ports:
- 8080:8080
environment:
NODE_ENV: "docker"
depends_on:
- redis
consumer:
image: ${DOCKER_REPO:-registry.gitlab.com/tikal-external/academy-public/images}/pinger:${DOCKER_VERSION:-latest}
build:
context: ./src/pinger/
x-bake:
platforms:
- linux/amd64
- linux/arm64
environment:
API_URL: http://api:8080
depends_on:
- api
client:
image: ${DOCKER_REPO:-registry.gitlab.com/tikal-external/academy-public/images}/poller:${DOCKER_VERSION:-latest}
build:
context: ./src/poller/
x-bake:
platforms:
- linux/amd64
- linux/arm64
environment:
API_URL: http://api:8080
depends_on:
- api