-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.03 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
version: '3.8'
services:
erp:
restart: always
build:
context: .
target: production
environment:
GO_APP_ENV: production
DB_NAME: iota_erp
DB_HOST: erp_db
DB_PORT: 5432
DB_PASSWORD: 2dP9L9d6gB9597
DOMAIN: apollos.studio
SESSION_DURATION: 720h
INITIAL_USER_EMAIL: diyor_khaydarov@apollos.studio
INITIAL_USER_PASSWORD: gSgnIInjB430
labels:
- "traefik.enable=true"
- "traefik.http.routers.erp.rule=Host(`erp.iota.uz`)"
- "traefik.http.routers.erp.tls=true"
- "traefik.http.routers.erp.tls.certresolver=letsencrypt"
- "traefik.http.services.erp.loadbalancer.server.port=3200"
networks:
- app
erp_db:
image: postgres:15.1
restart: always
hostname: erp_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 2dP9L9d6gB9597
POSTGRES_DB: iota_erp
volumes:
- ~/volumes/erp/postgres/data:/var/lib/postgresql/data
networks:
- app
networks:
app:
name: app
external: true