-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (54 loc) · 1.44 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
version: '3.8'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
app:
build: ./docker/
environment:
- AZURE_STORAGE_CONNECTION_STRING=${AZURE_STORAGE_CONNECTION_STRING}
- AZURE_STORAGE_ACCOUNT_NAME=${AZURE_STORAGE_ACCOUNT_NAME}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- TYPEORM_CONNECTION=${TYPEORM_CONNECTION}
- TYPEORM_HOST=${TYPEORM_HOST}
- TYPEORM_PORT=${TYPEORM_PORT}
- TYPEORM_USERNAME=${TYPEORM_USERNAME}
- TYPEORM_PASSWORD=${TYPEORM_PASSWORD}
- TYPEORM_DATABASE=${TYPEORM_DATABASE}
- TYPEORM_SYNCHRONIZE=${TYPEORM_SYNCHRONIZE}
- TYPEORM_LOGGING=${TYPEORM_LOGGING}
depends_on:
- postgres
ports:
- "3000:3000"
volumes:
- .:/usr/src/app
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- "5050:80"
volumes:
- pgadmin:/var/lib/pgadmin
cronjobs:
build: ./docker/
volumes:
- .:/usr/src/app
entrypoint: "./docker/cron/entrypoint.sh"
depends_on:
- app
restart: always
volumes:
pgdata:
pgadmin: