aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 19:52:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 20:29:03 +0200
commit1b9bdac6d2b5c7f7911245947e903a3df3c04145 (patch)
treeb6129fc86c171349803bd828e4e10fd7a710c637 /docker-compose.yml
parentmake proper "error" messages (diff)
downloadcimple-1b9bdac6d2b5c7f7911245947e903a3df3c04145.tar.gz
cimple-1b9bdac6d2b5c7f7911245947e903a3df3c04145.zip
docker: add initial configuration
Diffstat (limited to '')
-rw-r--r--docker-compose.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..d80a5cd
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,25 @@
+version: '3'
+
+x-cimple: &common
+ build: .
+ image: egortensin/cimple
+ restart: always
+
+services:
+ server:
+ <<: *common
+ ports:
+ - 5556
+ worker1:
+ <<: *common
+ command: ["./cimple-worker", "--host", "server"]
+ depends_on: [server]
+ worker2:
+ <<: *common
+ command: ["./cimple-worker", "--host", "server"]
+ depends_on: [server]
+ client:
+ <<: *common
+ command: []
+ entrypoint: ["./cimple-client", "--host", "server"]
+ restart: 'no'