comparison docker-compose.yml @ 0:a17a4894f4bd draft default tip

Initial commit converting git to mercurial
author Alfred Burgess <aburgess@ucc.asn.au>
date Sun, 14 Apr 2024 19:35:23 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a17a4894f4bd
1 version: '3.8'
2
3 services:
4 db:
5 image: postgres:latest
6 container_name: family_db
7 networks:
8 - default
9 restart: always
10 environment:
11 POSTGRES_DB: my_database
12 POSTGRES_USER: my_user
13 POSTGRES_PASSWORD: my_password
14 ports:
15 - "5432:5432"
16 volumes:
17 - db_vol:/var/lib/postgresql/
18 pgadmin:
19 image: dpage/pgadmin4:latest
20 restart: always
21 container_name: my_pgadmin
22 environment:
23 PGADMIN_DEFAULT_EMAIL: [email protected]
24 PGADMIN_DEFAULT_PASSWORD: admin_password
25 PGADMIN_LISTEN_PORT: 5050
26 ports:
27 - "5050:5050"
28 depends_on:
29 - db
30 volumes:
31 - pgadmin:/var/lib/pgadmin/
32 backend:
33 container_name: server
34 networks:
35 - default
36 depends_on:
37 - db
38 build:
39 context: ./backend
40 dockerfile: dockerfile
41 ports:
42 - "8080:8080"
43
44 networks:
45 default:
46
47 volumes:
48 db_vol:
49 pgadmin:
50