-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (46 loc) · 985 Bytes
/
docker-compose.yaml
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
version: '3.1'
services :
app:
image: mispon/digi-express:latest
restart: on-failure
ports:
- "8080:8080"
volumes:
- html:/app/html
depends_on:
- db
links:
- db:database
environment:
SELLER_ID: ${SELLER_ID}
SELLER_API_KEY: ${SELLER_API_KEY}
DATABASE_URL: postgres://${PG_USER}:${PG_PASS}@database:5432/digi
TG_USER: ${TG_USER}
db:
image: postgres:15.2-alpine
restart: on-failure
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
- ./create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
environment:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASS}
POSTGRES_DB: digi
admin:
image: adminer
restart: on-failure
depends_on:
- db
ports:
- "8082:8080"
volumes:
html:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './html'
dbdata:
driver: local