-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (53 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
60 lines (53 loc) · 1.49 KB
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
# Project Name : JULO Code test
# Services Name : Mini Wallet
# Maintainer : Derandi Hermanda
version: '3'
volumes:
mini_wallet_services_data: {}
networks:
mini_wallet_services-net:
external: false
services:
julo_mini_wallet_servcies:
container_name: "julo_mini_wallet_servcies"
build:
context: .
dockerfile: ./src/Config/Dockerfile
restart: on-failure
networks:
- mini_wallet_services-net
volumes:
- .:/usr/src/app/
# deploy:
# replicas: 0
# mode: replicated
command: /usr/local/bin/gunicorn --bind=0.0.0.0:5000 -w 3 --worker-class="egg:meinheld#gunicorn_worker" app:app --timeout 600
julo_postgres_mini_wallet_servcies:
container_name: "julo_postgres_mini_wallet_servcies"
image: postgres:11-alpine
restart: on-failure
env_file: src/Config/db.env
ports:
- '7000:5432'
networks:
- mini_wallet_services-net
volumes:
- mini_wallet_services_data:/var/lib/postgresql/data
julo_reverseproxy_mini_wallet_services:
container_name: "julo_reverseproxy_mini_wallet_services"
image: nginx:latest
volumes:
- ./src/Config/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- mini_wallet_services-net
depends_on:
- julo_mini_wallet_servcies
ports:
- '8000:5000'
restart: always
julo_redis_mini_wallet_services:
container_name: "julo_redis_mini_wallet_services"
image: redis:alpine
restart: on-failure
networks:
- mini_wallet_services-net