-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.backend.yml
138 lines (131 loc) · 3.14 KB
/
docker-compose.backend.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3.9'
services:
arche-redis:
image: redis:6.2.7
hostname: redis
container_name: arche-redis
command: redis-server --requirepass ${REDIS_PASSWORD}
environment:
- REDIS_URL=localhost:6379
restart: unless-stopped
build: "./redis"
ports:
- "6379:6379"
volumes:
- ./redis:/data
networks:
- arche-network
arche-db:
image: postgres:14
hostname: arche-db
container_name: arche-db
env_file: .env
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
POSTGRES_DB: "arche"
ports:
- "5432:5432"
volumes:
- ./db/postgres-data:/var/lib/postgresql/data
- ./db/sql:/docker-entrypoint-initdb.d
networks:
- arche-network
# arche-proxy:
# build:
# context: ./
# dockerfile: proxy/Dockerfile
# container_name: arche-proxy
# hostname: arche-proxy
# ports:
# - "8080:80"
# depends_on:
# - arche-api
# - arche-web
# networks:
# - arche-network
arche-api:
build:
context: ./go
dockerfile: api/Dockerfile
container_name: arche-api
hostname: arche-api
env_file: .env
restart: unless-stopped
volumes:
- ./go/api/config.json:/run/secrets/config.json
ports:
- 8100:8080
networks:
- arche-network
depends_on:
- arche-db
- arche-redis
# arche-web:
# build:
# context: ./client/web/example
# dockerfile: Dockerfile
# hostname: arche-web
# restart: unless-stopped
# container_name: arche-web
# volumes:
# - ./client/web/example:/app
# - /app/node_modules
# ports:
# - 80:3000
# # Cannot get hot reloading to work, the following environmental variables have been tested
# environment:
# - CHOKIDAR_USEPOLLING=true
# # - NODE_ENV=development
# # - FAST_REFRESH=false
# # - WDS_SOCKET_PATH=ws
# depends_on:
# - arche-api
# networks:
# - arche-network
# command:
# - nodemon
# - server.js
arche-scheduler:
build:
context: ./go
dockerfile: scheduler/Dockerfile
container_name: arche-scheduler
hostname: arche-scheduler
env_file: .env
restart: unless-stopped
volumes:
- ./go/scheduler/config.json:/run/secrets/config.json
ports:
- 8101:8080
networks:
- arche-network
depends_on:
- arche-db
- arche-redis
# LEGACY SCHEDULER
# arche-smart-scheduler:
# build:
# context: ./smart_scheduler
# dockerfile: Dockerfile
# container_name: arche-smart-scheduler
# hostname: arche-smart-scheduler
# env_file: .env
# # restart: unless-stopped
# volumes:
# - ./smart_scheduler:/smart-scheduler
# - /var/run/docker.sock:/var/run/docker.sock
# ports:
# - 8101:8081
# networks:
# - arche-network
# links:
# - arche-api
# - arche-web
# depends_on:
# - arche-api
# - arche-db
# - arche-web
networks:
arche-network: