-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.24 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
version: '3.9'
services:
# Proxy NGINX
pluto_nginx:
container_name: pluto_nginx
image: nginx:1.21.6-alpine
restart: always
volumes:
- ./services/nginx/hosts:/etc/nginx/conf.d
- /etc/localtime:/etc/localtime:ro
ports:
- '${PLUTO_NGINX_PORT}:80'
links:
- pluto_api
# Database (PostgreSQL)
pluto_db:
container_name: pluto_db
image: postgres:14.2-alpine3.15
environment:
POSTGRES_PASSWORD: ${PLUTO_DB_PASSWORD}
volumes:
- pluto_db:/var/lib/postgresql/data
- ./services/db/init/:/docker-entrypoint-initdb.d/
- /etc/localtime:/etc/localtime:ro
expose:
- '5432'
# Backend
pluto_api:
container_name: pluto_api
image: dizoft.ru:5001/pluto_api_image:latest
restart: always
environment:
DATABASE_URL: postgresql://puser:2580@pluto_db:5432/pluto_api?serverVersion=13&charset=utf8
volumes:
- /etc/localtime:/etc/localtime:ro
expose:
- '9000'
links:
- pluto_db
# Flutter UI
pluto_ui:
container_name: pluto_ui
image: dizoft.ru:5001/pluto_ui_image:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
expose:
- '80'
links:
- pluto_api
volumes:
pluto_db: