-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (74 loc) · 1.74 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
# todo: swarm production without frontend
services:
api:
build:
context: ./api
dockerfile: Dockerfile.dev
volumes:
- ./api/:/go/src/sendable/api
ports:
- 80:80
networks:
- vpc_local
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
db:
build:
context: ./database
env_file:
- ./database/.env
volumes:
- ./api/files:/api_files/files:ro
ports:
- 5432:5432 # should not be accessible outside docker in production
networks:
- vpc_local
deploy:
replicas: 1
restart_policy:
condition: on-failure
reacher:
image: reacherhq/backend:latest
environment:
- RCH_WORKER_CONCURRENCY=10
# - RCH_AMQP_ADDR=amqp://localhost
# - RCH_AMQP_ADDR=amqp://rabbitmq:5672
networks:
- vpc_local
deploy:
replicas: 1
restart_policy:
condition: on-failure
# rabbitmq:
# image: rabbitmq:3.12-management
# clamav:
# image: clamav/clamav:1.3.0-41
frontend: # development only, outside the cluster in prod
build:
context: ./frontend
volumes:
- ./frontend/app/:/frontend/app
- ./frontend/public/:/frontend/public
- ./frontend/package.json/:/frontend/package.json
# - ./frontend/package-lock.json/:/frontend/package-lock.json
- ./frontend/tailwind.config.ts/:/frontend/tailwind.config.ts
- frontend_node_modules:/frontend/node_modules
ports:
- 3000:5173
networks:
- vpc_local
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
frontend_node_modules:
networks:
vpc_local:
# driver: overlay
driver: bridge