-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 954 Bytes
/
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
version: "3"
services:
app:
build:
context: ./biturl
dockerfile: Dockerfile
command: sh -c "sleep 10 && uwsgi uwsgi.ini"
ports:
- "5000:5000"
depends_on:
- db
- cache
networks:
- appnetwork
# - cache_nw
db:
image: postgres:latest
restart: always
# env_file: ./biturl/.db.env
environment:
- POSTGRES_USER=ibrahim
- POSTGRES_PASSWORD=password
- POSTGRES_DB=biturl
ports:
- "5433:5432"
networks:
- appnetwork
volumes:
- ./postgres.conf:/etc/postgres.conf
- ./postgres-data:/var/lib/postgresql/data
cache:
image: "redis:alpine"
ports:
- "6379"
networks:
- appnetwork
# nginx:
# image: nginx:latest
# ports:
# - "8000:80"
networks:
appnetwork:
driver: bridge
# db_nw:
# driver: bridge
# cache_nw:
# driver: bridge
# volumes:
# - database-data: