forked from sadeghesfahani/e-commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.11 KB
/
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
52
53
54
55
56
57
58
59
60
61
version: '3.7'
services:
ecommerce:
build:
context: .
dockerfile: Dockerfile
ports:
- "63342:63342"
- "8000:8000"
links:
- postgres:postgres
- redis:redis
env_file:
- ./environments/production.env
depends_on:
- redis
- postgres
volumes:
- ./:/usr/src/app
caddy:
build:
context: .
dockerfile: caddy.dockerfile
depends_on:
- ecommerce
links:
- ecommerce:ecommerce
ports:
- 443:443
- 80:80
redis:
image: redis:6
restart: always
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
volumes:
- redis-data:/data
postgres:
image: postgres:13
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=ecommerce
volumes:
- postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_ecommerce
depends_on:
- postgres
ports:
- 5050:5050
env_file:
- environments/.postgres
volumes:
redis-data:
postgres:
file-data: