-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.45 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
61
62
63
64
65
66
67
68
69
version: "3.9"
services:
frontend:
build:
context: julianlechner/ecommerce-frontend:latest
args:
- REACT_APP_BACKEND_URL=http://localhost/api
- REACT_APP_AWS_S3_BASE_URL = https://jlechner-ecommerce.s3.amazonaws.com
ports:
- "3000:80"
depends_on:
- backend
labels:
com.centurylinklabs.watchtower.enable: "true"
env_file:
- ./frontend/.env.docker
backend:
image: julianlechner/ecommerce-backend:latest
ports:
- "8000:8000"
depends_on:
- postgres
labels:
com.centurylinklabs.watchtower.enable: "true"
env_file:
- ./backend/.env.docker
volumes:
- "~/apps/backend:/var/lib/backend/data"
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
volumes:
- "~/apps/postgres:/var/lib/postgresql/data"
env_file:
- ./.env
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
ports:
- "5050:80"
env_file:
- ./.env.docker
volumes:
- "~/apps/pgadmin:/var/lib/pgadmin"
watchtower:
image: containrrr/watchtower
container_name: watchtower
command: --interval 30 --label-enable --cleanup
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
nginx:
depends_on:
- frontend
- backend
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- "80:80" # Exposing on port 80 for host