-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (52 loc) · 1.12 KB
/
docker-compose.yaml
File metadata and controls
57 lines (52 loc) · 1.12 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
version: '3.8'
services:
db:
image: postgres:16.0-alpine
container_name: db
expose:
- 5432
volumes:
- mainapps_pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
mainappsnetwork:
apps:
image: mainapps:latest
restart: always
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
container_name: mainapps
volumes:
- mainapps_static_volume:/mainapps/files/static-collected
- mainapps_media_volume:/mainapps/files/media
env_file:
- .env
expose:
- 8001
networks:
mainappsnetwork:
nginx:
restart: always
build: ./nginx
volumes:
- mainapps_static_volume:/mainapps/files/static-collected
- mainapps_media_volume:/mainapps/files/media
- .:/nginx/etc/nginx/conf.d/
ports:
- ${NGINX_PORT}:80
depends_on:
- apps
networks:
mainappsnetwork:
volumes:
mainapps_static_volume:
mainapps_media_volume:
mainapps_pg_data:
networks:
mainappsnetwork: