-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.build.yml
56 lines (49 loc) · 1.17 KB
/
docker-compose.build.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.7'
services:
app:
build: .
depends_on:
- db
environment:
DATABASE_NAME: clug-db
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: .Clug-123
JWT_SECRET: iE1oP/5tO0H9knqiqqaOvXQGDGyRSx0BxxnbkD7Lhzw=
NODE_ENV: production
ports:
- 3100:3100
#restart: always
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: .Clug-123
POSTGRES_DB: clug-db
restart: always
volumes:
# Persist data in a named volume. Run `docker-compose down -v` to
# permanently delete it.
- "db_data:/var/lib/postgresql/data"
adminer:
image: adminer
restart: always
ports:
- 8080:8080
localstack-s3:
image: localstack/localstack:latest
container_name: localstack-s3
ports:
- '4566:4566'
environment:
- EDGE_PORT=4566
- SERVICES=s3
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- ./.localstack:/tmp/localstack
- ./docker/aws:/docker-entrypoint-initaws.d
volumes:
db_data: