-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
71 lines (66 loc) · 1.9 KB
/
docker-compose.dev.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file uses environment variables
# to override any settings add a file called '.env'
# with new environment variable values
# example: "DATABASE_USERNAME=NikZy"
version: "3"
networks:
hilfling-network: # Used for internal networking
volumes:
db-data: # Data volume for the database
services:
postgres:
container_name: hilflingdb
build:
context: .
dockerfile: postgres/Dockerfile
restart: always
networks:
- hilfling-network
volumes:
- "db-data:/var/lib/postgresql/data" # Database volume
#- "./postgres/sql:/base-sql" # Think this was init sql schema?
expose:
- 5432
ports:
- "5432:5432"
environment:
# Use env variable if exists, fallback to hilfling
POSTGRES_USER: ${DATABASE_USERNAME:-hilfling}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-password}
LISTENING_PORT: ${LISTENING_PORT-8080}
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-password}
ports:
- ${PGADMIN_PORT:-5050}:80
networks:
- hilfling-network
fg-static:
container_name: hilfling-static
#image: fotogjengen/hilfling-static # Don't need to push this to a registry
build:
context: ./static-files
dockerfile: Dockerfile
environment:
NGINX_HOST: ${NGINX_HOST:-fg-static.nikzy.no}
NGINX_PORT: ${NGINX_PORT:-80}
ports:
- 8383:${NGINX_PORT:-80}
volumes:
- ./static-files/static/:/usr/share/nginx/html
fg-blob-storage:
container_name: hilfling-blob-storage
image: mcr.microsoft.com/azure-storage/azurite
volumes:
- ./static-files/blob_storage/:/data
restart: always
networks:
- hilfling-network
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"