-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 928 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 928 Bytes
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
version: '3'
services:
client:
image: 'nickchendev/multi-client'
container_name: client-v1
mem_limit: 128m
hostname: client
server:
image: 'nickchendev/multi-server'
mem_limit: 128m
container_name: server-v1
hostname: api
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_DATABASE=$POSTGRES_DATABASE
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_PORT=$POSTGRES_PORT
worker:
image: 'nickchendev/multi-worker'
mem_limit: 128m
container_name: worker-v1
hostname: worker
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
nginx:
image: 'nickchendev/multi-nginx'
mem_limit: 128m
container_name: nginx-v1
hostname: nginx
ports:
- '80:80'
depends_on:
- server
- client