-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (41 loc) · 931 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
version: '3.8'
services:
db:
image: postgres:13.4-alpine
environment:
POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASSWORD
PGUSER: $PGPASSWORD
PGPASSWORD: $PGUSER
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
networks:
- backend_network
volumes:
- pgdata:/var/lib/postgresql/data
memoria:
image: $REGISTRY/$REPO_OWNER/$DOCKER_TAG
environment:
POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASSWORD
PGUSER: $PGUSER
PGPASSWORD: $PGPASSWORD
PGPORT: 5432
PGHOST: db
CODECOV_TOKEN: $CODECOV_TOKEN
build:
context: .
dockerfile: Dockerfile
cache_from:
- $REGISTRY/$REPO_OWNER/$DOCKER_TAG
tty: true
depends_on:
- db
networks:
- backend_network
command: ["/bin/sh", "./setup-database.sh"]
volumes:
pgdata:
networks:
backend_network:
driver: bridge